divs as frames?

Atheus

Diamond Member
Jun 7, 2005
7,313
2
0
How can I get a div to 'float' at the top of a page like a frame would? I would like a row of buttons to remain at the top of the page while you scroll through a document below. Using actual frames at this point would mess up all the javascript...

Thanks.
 

screw3d

Diamond Member
Nov 6, 2001
6,906
1
76
Look at this for the CSS way (position: fixed)

then use conditional comments for IE to add the javascript for IE.
 

Atheus

Diamond Member
Jun 7, 2005
7,313
2
0
I just made the lower div scroll with overflow: scroll;

:roll:

It was actually a pretty dumb question now that I think about it.