12

Mar

Filed in CSS, Code with 1 comments |

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+ */

1 Responses to "Word-wrap Preformatted Text"

Subscribe to this topic with RSS or get the Trackback URL
hemant (Apr 15th):

Word-wrap Preformatted Text is not working can you tell me how to word wrap in mozilla browser

Leave A Reply

 Username (*required)

 Email Address (*private)

 Website (*optional)

Note: Comments moderation may be active so there is no need to resubmit your comment.