Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: <pre> tags on wide lines

by Anonymous Monk
on Nov 21, 2010 at 02:42 UTC ( #872738=note: print w/ replies, xml ) Need Help??

in reply to <pre> tags on wide lines

It could be solved for modern browsers by adding pre { white-space: pre-wrap; } to the site's stylesheet.

See the CSS2 specification for how it's supposed to work, and Quirksmode for browser support and test cases.

Comment on Re: <pre> tags on wide lines
Download Code
Replies are listed 'Best First'.
Re^2: <pre> tags on wide lines
by Corion (Pope) on Nov 21, 2010 at 10:00 UTC


    This rule is now used in the common.css file and thus PRE tags should now wrap nicer.

Re^2: <pre> tags on wide lines
by roboticus (Chancellor) on Nov 21, 2010 at 03:58 UTC

    Awesome! That fixed things nicely for me. I'm certain the gang playing with style sheets for a site facelift will want to add this to the default.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://872738]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2015-10-13 21:53 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (316 votes), past polls