Reply to Re: How to FIX an element on screen?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация