Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 (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.

    ...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 about the Monastery: (6)
As of 2015-07-04 20:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls