Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS float - bottom corners

Tags:

css

css-float

I have buttons that always float at the the bottom corner of the browser window.

The back button is in the correct place, but the next button won't float right.

#footerback {
    width: 107px;
    background-position: top;
    padding: 0px 30px 30px 0px;
    position: fixed;
    bottom: 0px;
    float: left;    
}
#footernext {
    width: 107px;
    background-position: top;
    padding: 0px 30px 0px 30px;
    position: fixed;
    bottom: 0px;
    float: right;   
}

How do I fix this?

like image 995
Ma9ic Avatar asked May 31 '12 12:05

Ma9ic


People also ask

How do you float a bottom button in CSS?

You need to use position: absolute in order for it from the bottom-right. The parent component must have the relative tag and button should have an absolute tag.

How do I display div on bottom right corner?

To place a div in bottom right corner of browser or iframe, we can use position:fixed along with right and bottom property value assigned to 0.

How do I put an image in the bottom right corner in HTML?

You can use position: fixed; bottom: 0px; right: 0px; which makes sure that your company logo is always visible at bottom right corner - this means that page scrolling is not affecting its position.


2 Answers

HTML

<div class="circle-div"></div>

CSS

.circle-div {
    background-color: #314963;
    height: 40px;
    width: 40px;
    border-radius: 100%;
    position: fixed;
    bottom: 21px;
    right: 25px;
}

This places a round circle around the bottom right of the page.

like image 82
Victor Ejiogu Avatar answered Oct 28 '22 23:10

Victor Ejiogu


Try this CSS to put it at bottom right;

position:fixed;
right:0;
bottom:0;
like image 33
Sarfraz Avatar answered Oct 28 '22 23:10

Sarfraz