Reply to Re: div no scroller in IE but fine in firefox

Your name:

Reply:


Posted by BootNic on 01/06/07 19:09

> pbx <pbeisel@gmail.com> wrote:
> news: 1168104852.331713.245540@51g2000cwl.googlegroups.com
> 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?

style="width:100%;overflow:scroll;overflow-y:visible;overflow-x:scroll;"

--
BootNic Saturday, January 06, 2007 2:09 PM

Assert your right to make a few mistakes. If people can't accept your
imperfections, that's their fault.
*Dr. David M. Burns*

[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

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