How to add fixed button to the bottom right corner of html page using css

If you want to add a specific button for example, for uploading some contents to your website OR for moving to top if user has scrolled down on the page, the best way is to add a static/fixed button on the bottom of the page, you can decide whether you want to add on right corner or left corner based on the design of your website.

Here, we will show how to add the button on lower right corner of html page using simple html code as below,

<a href="" style="position:fixed;bottom:10%;right:5px;margin:0;padding:5px 3px;">
    <button type="button" class="btn btn-danger btn-sm">
      <span class="glyphicon glyphicon-plus"></span>
      <b> FREE POST </b>

Preferrably add this code to the footer of your website, so the button is visible on all pages of website. The live functional button with css used as above can be seen at this website

Here we have used, button from bootstrap and class set to “btn-danger” for red background button. We also have shown the plus ( + ) icon using glaphicon library, and actual css looks like as below,

padding:5px 3px;
Android Android Commands Android Java Applications Application Libraries Application Stack / User Interface Bash / Shell Scripts Commands and Packages Compilation Content Management System - CMS Core Kernel C Programs Development & Build Development Environment Setup Errors & Failures Flutter git Go Language Programs Hardware Platforms HTML JAVA Programs Kernel & Device Drivers Linux, OS Concepts and Networking Linux Device Drivers Linux Host, Ubuntu, SysAdmin Linux Kernel Linux Networking Middleware Libraries, HAL Monetization / Google AdSense Multimedia - Audio, Video, Images NDK / Middleware / HAL OS Concepts PHP Programming Languages RaspberryPi Scripting and Automation Search Engine Optimisation ( SEO ) Social Media Socurce Code Management ( SCM ) System Administration, Security Testing and Debugging Uncategorized User Interface Web design and development Wordpress Yocto / Bitbake / Openembedded

Leave a Reply / Ask Question