Help - Search - Members - Calendar
Full Version: Why Is This Breaking My Divs In Firefox?
Zymic Webmaster Forums > Web Design & Development > Client Side Scripting > HTML and CSS
bezz
I just noticed a nasty glitch in my site using firefox. With IE, long lines of code are split into seperate lines. With firefox, there is no splitting. Example:
http://www.bezzmedia.com/swfspot/samples/i...te/Image_Slider
Is there maybe a css tag that will automatically split up extra long lines with no spaces, or do I have to manually go through all of my tutorials and fix this firefox glitch?
The problem also exists in opera except opera breaks on - as well as spaces.
alecrust
This isn't a Firefox glitch. Lines without any spaces are supposed to overflow outside their container.

The only thing you can do is to place a space in those lines where possible. There is no way to force it to wrap I am afraid. Perhaps placing each bit of code in a textarea? That would produce a horizontal slider for seeing the rest of the code on the same line.
bezz
Ahh, too bad. looks like I have some work to do then. I'll see if I can add in some spaces, I hate horizontal sliders. Thanks.
SimpleMinded
try using overflow: scroll;

It may add the nasty looking scroll bars, but its better than nothing.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.