Posted By

alli14404 on 01/07/09


Tagged

browser wrap word cross


Versions (?)

Who likes this?

10 people have marked this snippet as a favorite

basicmagic
teddyzetterlund
yourfavorite
0range
riddla
affadmin
rccc
krike
droopysignal
atulkransingh


CSS Cross Browser Word Wrap


 / Published in: CSS
 

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

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: affadmin on October 8, 2010

Fixed width is a must.

Posted By: krike on November 5, 2010

very useful thank you :)

You need to login to post a comment.