Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

Safari will not word-wrap <pre>... help!

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch

lritter

New Member
Impact
0
Hello-

So my problem is that I am formatting text using the <pre> tag. I also apply this style to it with CSS:

white-space: pre; /* CSS2 */
white-space: -moz-pre-wrap; /* Mozilla */
white-space: -hp-pre-wrap; /* HP printers */
white-space: -o-pre-wrap; /* Opera 7 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: pre-wrap; /* CSS 2.1 */
white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
word-wrap: break-word; /* IE */
_white-space: pre;

This makes the text wrap nicely in all browsers except Safari, who likes to chop words in half to wrap them.

Does anyone know how to fix this?
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Spatial Sidebar: More consistent display
We fixed some bugs in the Spatial Sidebar. It now displays more consistently across browsers and should perform better. If you use it...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back