Link to home
Start Free TrialLog in
Avatar of attipa
attipaFlag for United States of America

asked on

div container which stays static and does not scroll with the rest of the page

i have a header on all my pages nested in a div container.  is it possible to assign that div container never to move from the top while the page continues to scroll?  kind of like how the good old frames worked in html.
Avatar of VirusMinus
VirusMinus
Flag of Australia image

position:fixed is what you're looking for. although getting it to work for IE can be tricky.

see:
http://tagsoup.com/cookbook/css/fixed/

examples: http://tagsoup.com/cookbook/css/fixed/legacy/

some more articles (some may be out of date):
http://www.divinentd.com/experiments/emulating-position-fixed.html
http://www.howtocreate.co.uk/fixedPosition.html
ASKER CERTIFIED SOLUTION
Avatar of VirusMinus
VirusMinus
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial