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?
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?





