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

Home » General » HTML, Javascript, jQuery & AJAX » Pre tags in posts
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Pre tags in posts [message #166838] Sun, 04 March 2012 10:42 Go to next message
Motiak is currently offline  Motiak   United States
Messages: 15
Registered: October 2011
Karma: 0
Junior Member
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 13:45 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
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.
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Sat Apr 27 13:06:37 GMT 2024

Total time taken to generate the page: 0.02221 seconds