Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

div fixed at top of screen

Status
Not open for further replies.

Toe

Programmer
Oct 26, 2001
71
GB
hi,

I want a div fixed at the top of the screen, such that it stays there when the rest of the page moves. (ie. so that it acts like a 'banner' at the top of the page)

I've seen this somewhere else and was wondering how to do it.

any idea's.

thanks
 
You can use "position:fixed" but you'll have to use javascript workarounds for browsers that don't support it (like IE).


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Yeah, dunno why I thought you needed to use javascript as a workaround - I even used a CSS hack in faq215-6195. [blush]


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
ok thanks guys.

I had actually tried the position:fixed .... but was using ie.

cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top