Well, I'm not sure if this is what you're interested in.  The CSS attribute
position:fixed will do what you want, but it is not supported by IE6.
However, there is a CSS hack around that:

http://www.cssplay.co.uk/layouts/fixed.html

I'm not sure if their solution is to your liking, but it one way to do it.

Unfortunately, javascript oriented solutions are event based, such as when
the page scrolls, THEN fire the event to reposition the element.  So the
floating element will move twice then end up in its original location.

JK

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jack Killpatrick
Sent: Sunday, April 29, 2007 10:24 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] stay at top div


I'm looking for a way to get a div to stay at the top of a page when the 
user scrolls the page, preferably with no flickering (of the div)...and 
it has to work in IE6/7. It's possible that it can be done without 
js/jquery, but am fishing..... the ones I've found so far that were pure 
css didn't work in IE (but did in FF). Anyone know of a plugin, example, 
have a tip, etc?

Thx,
Jack

Reply via email to