pre tags conflicting with styles
I'm looking for a better way to format my form-to-database-and-back. I need the output to read my tabs and breaks, etc. I get my output by using a <pre> tag, but then I can't get it to conform to my styles, and it bleeds way off the page. wordwrap() is also giving me some funky tabs that push my text way off to the right. I'm rather hesitant to use bb code because I don't want my maintenance guys messing around with formatting more than they need to. Am I going to need to make the leap?
Try posting an example? or some formatting code? You can style your <pre> with CSS
ahhh, duh. That should do it.
You can also CSS any element you want:
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+ */
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)