 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
edpoor
Joined: 16 Oct 2009 Posts: 3
|
Posted: Fri Oct 16, 2009 11:24 am NOBR when IE does not honor white-space:nowrap; |
|
|
|
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
|
Posted: Fri Oct 16, 2009 12:05 pm |
|
|
|
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
|
Posted: Mon Oct 19, 2009 2:13 am |
|
|
|
| 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
|
Posted: Mon Oct 19, 2009 11:36 am |
|
|
|
| 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
|
Posted: Mon Oct 19, 2009 3:18 pm |
|
|
|
| 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. |
|
|
|
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
|
|
|
|
|
 |
|
|
|
|
|
|
|