Trevor Nicholls wrote: > Hi > > Example found at http://homepages.ihug.co.nz/~tmjpbn/csw5.html > > I have a (div) code fragment which has a text content (div) 'fragbody', > styled with white-space:nowrap and displayed in a colored rectangle with a > black border. > > Apparently in IE6 if the browser window is narrowed the border and colored > background "box" will not shrink to be smaller than the text, and the user > can scroll right to see the end of the text and the edge of the box. This is > the desired behaviour.
I think this has something to do with the -IE6 expanding box bug. <http://www.positioniseverything.net/explorer/expandingboxbug.html> Though I have never seen it due to white-space:nowrap. > However in IE7 the box shrinks, while the text does not. The user can scroll > right to see the rest of the text, but the "box" margin cuts through the > text. [...] > Cheers > Trevor Instead of white-space: nowrap, have you tried. div.fragbody { overflow:auto; } Which will automatically cause a scroll bar to appear on div.fragbody when the veiwport is narrowed. -- Alan http://css-class.com/ Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo http://www.wearechange.org/ ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
