Posted By

marcio on 02/13/10


Tagged

css html style code styling tag pre


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

smvnet


Tag pre crossbrowser


 / Published in: CSS
 

URL: http://www.viget.com/inspire/linewrapping-with-pre-code/

  1. pre {
  2. white-space: pre-wrap; /* css-3 */
  3. white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
  4. white-space: -pre-wrap; /* Opera 4-6 */
  5. white-space: -o-pre-wrap; /* Opera 7 */
  6. word-wrap: break-word; /* Internet Explorer 5.5+ */
  7. }

Report this snippet  

You need to login to post a comment.