James Colannino wrote: > James Colannino wrote: >> Hey everyone. I have a bit of a quandary. I have a scroll area >> implemented with a div box, which itself is inside of a fieldset for a >> form. I have another div area nested inside of this one with a width of >> 50%, which should, I assume, make it 50% of the width of the parent div >> area (the scroll area.)[...] > > So, I have an update. If the page is loaded with content inside the div > box, it wraps. If Javascript adds content to the div box dynamically > after the page has loaded, the text doesn't wrap. This happens both in > Opera and Firefox. > > Weird. Anybody have any ideas?
Ok, so I have an update. It turned out that the code I was using was inserting " "'s in place of true space characters. The browser renders them as as spaces, but I guess it's not seen as true whitespace when the browser decides where to wrap. Hence, I get one long line with no true whitespace that can't be wrapped, and I get the horizontal scrollbar. I modified the code so that true whitespace was inserted and that fixed the problem. Hope this proves to be useful to someone, even if it's found via a google search years later :) James ______________________________________________________________________ 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/
