Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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
Re^2: <pre> tags on wide lines
by roboticus (Canon) 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.

    ...roboticus

Re^2: <pre> tags on wide lines
by Corion (Pope) on Nov 21, 2010 at 10:00 UTC

    Thanks!

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2014-12-28 12:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (181 votes), past polls