| 
	
 | 
 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] 
 |