Posted By

soxiam on 06/18/07


Tagged

css wrap wordwrap pre


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

basicmagic


word wrap pre


 / Published in: Other
 

  1. /* Browser specific (not valid) styles to make preformatted text wrap */
  2.  
  3. pre {
  4. white-space: pre-wrap; /* css-3 */
  5. white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
  6. white-space: -pre-wrap; /* Opera 4-6 */
  7. white-space: -o-pre-wrap; /* Opera 7 */
  8. word-wrap: break-word; /* Internet Explorer 5.5+ */
  9. }

Report this snippet  

You need to login to post a comment.