FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » HTML, Javascript, jQuery & AJAX » Pre tags in posts
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Pre tags in posts [message #166838] Sun, 04 March 2012 05:42 Go to next message
Motiak is currently offline  Motiak   United States
Messages: 15
Registered: October 2011
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
So, I'm running an HTML FUDforum and everything seems to work great except for one thing. Basically what I do is instead of using nl2br I use pre tags to keep whitespace because nl2br makes quoting look ridiculous after a few quoted posts. My problem is that for a small group of browsers (pretty much only super old browsers as well as pre IE 8 and IE 8 or 9 in compatibility mode) have issues with word wrap not occurring. I've tried all the CSS on http://www.longren.org/wrapping-text-inside-pre-tags/ to no avail. The only thing I've found that works is to set a fixed width on posts but I don't really want to do that. Here's the weird part, I can get the text to wrap for older browsers outside of posts, just not in posts. Anyone know if there anything special about posts that would cause CSS pre word-wrapping not to work? Thanks.
Re: Pre tags in posts [message #166861 is a reply to message #166838] Sat, 10 March 2012 08:45 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
CSS pre word-wrapping should work for all browsers that supports it.

You can also change the "Word Wrap" setting in the Global Settings Manager.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: AJAX - PHP validation
Next Topic: Probem on the page in this sait
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Oct 23 09:33:35 EDT 2017

Total time taken to generate the page: 0.00663 seconds