RSS Forums RSS
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 1051 | Replies: 0
Reply
Join Date: Oct 2007
Posts: 18
Reputation: jonesc5 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jonesc5 jonesc5 is offline Offline
Newbie Poster

wrapping a pre tag

  #1  
Apr 4th, 2008
I currently have this in my css. But for the life of me IE7 won't do as it's told. The page looks GREAT in firefox but refuses to wrap in IE.
pre {
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+ */
 color: #333333;
 font-family: Tahoma, Arial, Helvetica, sans-serif;
 font-size: 12px;
}
the nearest i have got so far in IE is to add

width: 99%;

But this makes the page bigger so that it exists where the unwrapped text would be.

so the width option is out

I have found the same response everywhere but wonder if there is something i'm missing?

thanks

Chris
Last edited by jonesc5 : Apr 4th, 2008 at 8:59 pm.
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 3:05 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC