csgp_1412
asked on
WordWrap/Overflow CSS solution
Hi,
I need a CSS class that can wrap spaceless (if at all the dictionaries permit!) lines nicely, without showing a horizontal scroll bar.
For example a line like this:
jhkjghjkhjhh.jkhksjhgjsdhg kh.gjksdhg jksdhgkh.g jksdhgkjhs dgkjhgdjsh gsdhgdshgk hdsghdjshd jhgghjhggh dsgkjsdhgd shgjhgkjsd hgdshghdsk jghdskjgh
floats across the screen when "overflow" attrib is not specified. If set to "scroll" the horizontal scroll bar appears. Is there a better solution?
I need a CSS class that can wrap spaceless (if at all the dictionaries permit!) lines nicely, without showing a horizontal scroll bar.
For example a line like this:
jhkjghjkhjhh.jkhksjhgjsdhg
floats across the screen when "overflow" attrib is not specified. If set to "scroll" the horizontal scroll bar appears. Is there a better solution?
ASKER
Well, FireFox is the one for which I need expert help :)
you can also try this.
http://www.quirksmode.org/oddsandends/wbr.html#t02
http://www.quirksmode.org/oddsandends/wbr.html#t02
after a bit of research it appears the only solution appears to be javascript.
ASKER
Ok. But how?
I am working on some code for you.
ASKER
Oh. Thanks a lot. That'll be great.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks a lot, we will try this out.
http://www.css3.com/css-word-break/ (browser compatability is listed in the comments)
check out the example below: (I am attempting to find a solution for FF functionality)
Open in new window