Posted by Dylan Parry on 09/28/79 11:28
Using a pointed stick and pebbles, typingcat@gmail.com scraped:
> I want to have the navigation region(DIV) be fixed on the screen so it
> woudn't disappear when the page is scrolled. I can do that with
> JavaScript but I was just wondering if there is any style property for
> this?
Yes and no. Yes, officially, in that there is the "position: fixed;"
property that allows for positioning an element in the same location
regardless of scroll; and no, in that IE doesn't support it.
You can of course use the "position: fixed;" property in your CSS and
have a JavaScript fallback that it only used for Internet Explorer
through the use of conditional comments.
--
Dylan Parry
http://webpageworkshop.co.uk -- FREE Web tutorials and references
[Back to original message]
|