Web Design

Only members of this group can post notes and use other group resources. Join now to get access to all group resources!
Log in or register to join this group

HTML/XHTML Wrap the text in PRE tag  Viewed 12484 time(s), 2 post(s)., 1/12/2014 8:18:53 PM - by Maya

Maya
Maya 1/12/2014 8:18:53 PM

How to get the text wrapped in <PRE> tag? 

This content has not been rated yet. 
141 Reputation 9 Total posts
1
Sam
Sam 1/14/2014 9:51:03 PM

try this one

pre {
 white-space: pre-wrap;      
 word-wrap: break-word;       /* for IE */
}

This content has not been rated yet. 
233 Reputation 37 Total posts
2