HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
NOBR when IE does not honor white-space:nowrap;
Post new topic   Reply to topic    HTML Help Forum Index -> CSS
View previous topic :: View next topic  
Author Message
edpoor



Joined: 16 Oct 2009
Posts: 3

PostPosted: Fri Oct 16, 2009 11:24 am     NOBR when IE does not honor white-space:nowrap; Reply with quote

I divided a numbered list into 2 columns, and I wanted each item to take exactly one line.

But Internet Explorer would word-wrap the small words at the end of long lines in the right column.

I had to used <NOBR>Here is a long line for me</NOBR> because style="white-space:nowrap;" did not work.

Is this a known bug, or something I'm doing wrong, or what?

Uncle Ed
PayneLess Designs



Joined: 28 Feb 2007
Posts: 3593
Location: Biloxi, MS

PostPosted: Fri Oct 16, 2009 12:05 pm     Reply with quote

NOBR is proprietary markup. It's the same for MARQUEE. "white-space:nowrap;" should work as it is a well-known CSS property. Why it didn't work is hard to tell without seeing how you used it. Not sure all browsers support it. "white-space: nowrap;" works in FF, but that's apparently for individual text parts (which are grouped in "anonymous boxes" when sitting inside an element). It would not force a bunch of blocks or non-text inlines to not wrap. A proper width must be set where used.

Try using the "pre" tags.
leahmarie



Joined: 04 Aug 2009
Posts: 29

PostPosted: Mon Oct 19, 2009 2:13 am     Reply with quote

PayneLess Designs wrote:
Try using the "pre" tags.


I agree with this one. I use this tags before and it works well in IE. But now I'm creating a separate css file just for IE browsers only.
edpoor



Joined: 16 Oct 2009
Posts: 3

PostPosted: Mon Oct 19, 2009 11:36 am     Reply with quote

PayneLess Designs wrote:
NOBR is proprietary markup. It's the same for MARQUEE. "white-space:nowrap;" should work as it is a well-known CSS property. Why it didn't work is hard to tell without seeing how you used it. Not sure all browsers support it. "white-space: nowrap;" works in FF, but that's apparently for individual text parts (which are grouped in "anonymous boxes" when sitting inside an element). It would not force a bunch of blocks or non-text inlines to not wrap. A proper width must be set where used.

Try using the "pre" tags.


Thanks for your response, I'll try PRE next chance I get. --Eddie
PayneLess Designs



Joined: 28 Feb 2007
Posts: 3593
Location: Biloxi, MS

PostPosted: Mon Oct 19, 2009 3:18 pm     Reply with quote

You're welcome. I've had problems at times with pre-wrap and a few others. "pre" tags only help to maintain text just as you type it. You add a lot of whitespace, which normally is ignored, and the text will show just as you put it on the page. Post back if you have problems with related problem with topic here.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> CSS All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial