2 replies [Last post]
arya6000
Offline
newbie
Last seen: 13 years 5 days ago
Joined: 2008-04-22
Posts: 2
Points: 0

Hello

I need to make a page that has a top frame with a logo and 2 text links, and the top should not scroll with the rest of the page. So I want the top frame always visible. But I have never done anything like that. Is there anything I can read that makes it possible for me to do?

Thank You

soundscape
soundscape's picture
Offline
Enthusiast
Kansas City Metro
Last seen: 4 weeks 12 hours ago
Kansas City Metro
Timezone: GMT-7
Joined: 2007-10-18
Posts: 188
Points: 0

Apply the following style to

Apply the following style to the top div: position: fixed;

I made a very basic sample for you to look at here:
http://www.kenlange.com/test/fixed.htm
http://www.kenlange.com/test/fixed.css

~Soundscape
www.kenlange.com

Ed Seedhouse
Ed Seedhouse's picture
Offline
Guru
Victoria British Columbia
Last seen: 23 weeks 2 days ago
Victoria British Columbia
Timezone: GMT-8
Joined: 2005-12-14
Posts: 3570
Points: 675

Of course it won't work with

Of course it won't work with IE6, which doesn't understand fixed positioning (except on the background for the body, iirc).

Ed Seedhouse

Posting Guidelines

Watch out! I am carrying irony, sarcasm and satire, and know how to use them.