[Tracker-discuss] [issue75] Improve wrapping of comment text

Roché Compaan metatracker at psf.upfronthosting.co.za
Mon Jan 15 21:04:16 CET 2007


Roché Compaan added the comment:

On Mon, 2007-01-15 at 19:55 +0000, Erik Forsberg wrote:
> Erik Forsberg <forsberg at efod.se> added the comment:
> 
> I added a wrap="true" to the <pre> used to display messages. Looks better now,
> if you ask me. What do you think?
> 
> I failed to do this using css. If I understand
> http://www.w3.org/TR/CSS21/text.html#propdef-white-space correctly, a 
> 
> table.messages td pre 
> { white-space: pre-wrap } 

I've been here before. A slight improvement to make it cross browser
compatible:

pre {
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap;  /* 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+ */
}

See:
http://myy.helia.fi/~karte/pre-wrap-css3-mozilla-opera-ie.html

______________________________________________________
Meta Tracker <metatracker at psf.upfronthosting.co.za>
<http://psf.upfronthosting.co.za/roundup/meta/issue75>
______________________________________________________


More information about the Tracker-discuss mailing list