NameSilo

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

Spaceship Spaceship
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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back