votrechien1 — 2011-12-24T01:55:59-05:00 — #1
I'm self-admittedly horrible at CSS. I have a quick question regarding text wrap.
I'm designing a mock up page here: http://anchoring.com/css-prob.html
On the left hand column, where it says "Everything else boatingggg", I want the boatingggg to be forced to a new line rather than overlapping. How do I do this? I believe it involves addin white-space:pre-line; somewhere, but I'm really not sure where.
Feel free to criticize the semantics of the rest of the CSS as well
Thanks in advance.
sega — 2011-12-24T02:15:26-05:00 — #2
The text appears to be part of an image. You can't break an image to another line. You have to have the text as text, it would also reduce the file size of your web-page.
paulob — 2011-12-24T06:33:18-05:00 — #3
You have explicitly told the browser not to wrap with white-space:nowrap in your left-categories div.
However removing it will not allow a string of unbroken text to wrap but will allow normal words with gaps to wrap.
You will need to use word-wrap:break-word to break the unbroken text:
votrechien1 — 2011-12-26T15:13:08-05:00 — #4
Awesome. Worked like a charm. Thanks Paul.