NameSilo

How to make it in CSS: Fixed bar at bottom.

Spaceship Spaceship
Watch
Impact
33
Hello

i would like to know how to make a fided bar at the bottom of the screen wich stay fixed always even if the scroll bar is moved... i've tried with "position: fixed"

I want o make a bar, something simillar to the one in facebook but with texts or links to sections of the page, etc.

Thanks in advance.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
In addition to "position: fixed;", have you tried:

bottom: 0px;
 
1
•••
yesss!!! right! it works!!! MANY THANKS!!!!
 
0
•••
0
•••
I have used this. Please refer-
<style type="text/css">
#bottom {
width: 95%;
position: fixed;
bottom: 30px;
border-top: 2px solid #666666;
border-left: 3px solid #666666;
border-right: 2px solid #666666;
-moz-border-radius-topleft: 7px;
-moz-border-radius-topright: 7px;
margin-bottom:-30px;
}

</style>
<div id="bottom"> <a href="url"><img src="url1" border="0"></a> HI
</div>
 
1
•••
thank u!!! i will test it

I have used this. Please refer-
<style type="text/css">
#bottom {
width: 95%;
position: fixed;
bottom: 30px;
border-top: 2px solid #666666;
border-left: 3px solid #666666;
border-right: 2px solid #666666;
-moz-border-radius-topleft: 7px;
-moz-border-radius-topright: 7px;
margin-bottom:-30px;
}

</style>
<div id="bottom"> <a href="url"><img src="url1" border="0"></a> HI
</div>
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back