CSS Cross Browser Word Wrap


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  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

You need to login to post a comment.