Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Revised theme now live...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Revised theme now live...
Authored by: dzurn on Jun 30, '08 10:33:16AM
Should have this added to the MacOSXHints [pre] tag styles CSS:
pre {
overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */

Madness takes its toll.
Please have exact change.

[ Reply to This | # ]

Revised theme now live...
Authored by: robg on Jun 30, '08 12:47:42PM

The problem isn't the pre code -- well, yes, that's a problem as well. However, if you look at what caused the screen to grow horizontally in this thread, it's a long line of JavaScript *plain text*. However, there aren't any spaces in the JavaScript, so the browser can't figure out where to break it.

I'm not aware of any CSS to handle wrapping of indeterminate-length pure text strings -- but if such a thing exists, please post it!


[ Reply to This | # ]