12

Mar

Filed in CSS, Code |

I was searching the internet the other day for a solution to word-wrap preformatted text for pastethat.com. Low and behold, Google answers all, it just takes finding the right keywords. So, the solution:

white-space: pre-wrap;       /* CSS-3                  */
white-space: -moz-pre-wrap;  /* Mozilla, since 1999    */
white-space: -pre-wrap;      /* Opera 4-6              */
white-space: -o-pre-wrap;    /* Opera 7                */
word-wrap: break-word;       /* Internet Explorer 5.5+ */
  • hemant
    Word-wrap Preformatted Text is not working can you tell me how to word wrap in mozilla browser
blog comments powered by Disqus