CSS to achieve a similar fixed floating div thast always on top of other divs - like stackoverflow does?
13,448
You need to use the position: fixed;
property for #top div.
<div id="top"></div>
#top {
position:fixed;
top:0px;
width:100%;
height:70px;
}
Author by