You are here: div no scroller in IE but fine in firefox « HTML « IT news, forums, messages
div no scroller in IE but fine in firefox

Posted by pbx on 01/06/07 17:34

i have a div tag on my html page as follows:

<div style="overflow-x:scroll;"> (or auto, makes no difference)

the contents of the div are about 1500 pixels wide.

in firefox, the div will get a horizontal scroller, fitting it nicely
within firefox's browser window

in IE, however, no scroller will appear. the content will reach its
full 1500 pixels and the browser's scroll bar will appear.

the firefox behavior is desired, i want the div to have a scroll not
the browser window to grow to accomodate the whole div.

if i set the width to a defined number of pixels, however, IE will
provide a scroller. but i don't want to do this, since obviously the
code is generated on the server and i have no idea with width of the
user's browser window.

btw, the "incorrect" behavior is showing itself in IE 7. using firefox
2.0.

any workaround?

 

Navigation:

[Reply to this 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

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