473,396 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

nowrap in li applied to whole ul in IE

Good day, all. I've been having this problem for a long time and it's
finally driven me to abandon my own resources and get some help. I've
been unable to find a similar problem discussed before on the list.

Here's the url: http://gorpub.freeshell.org. The stylesheet is
goretsty.css. For my questions, eliminate the </ul><ulin the middle
of the <div class="toolbar">; I've only got that there as a stopgap to
make the site appear at least marginally well-designed. My problem
comes when I remove these tags, which I'd really like to do to help
remove formatting difficulties when users shrink the window size. I'd
like the lists to wrap well on their own.

Firefox displays the list elements perfectly well, in exactly the way
I'd expect it to. There are no breaks within <lielements---there
being a white-space: nowrap; directive for them in the stylesheet---but
there are breaks between the <lielements---there being no such
directive for the <ulas a whole. Great.

IE freaks out and refuses to break the <ul>, even when explicitly told
to break normally with white-space: normal;. When I remove the
white-space: nowrap; from the <listyling, however, it then breaks the
<liin the middle, as one would expect.

So, to summarize: Firefox applies the white-space: nowrap; only to the
<lielement in which I actually put it; IE applies it to the entire
<ul>. This forced me to put in a manual break which I'd like to get
rid of, if I can.

Is this a bug in IE? If so, is there a workaround?

Thanks.

Oct 11 '06 #1
3 7498
On 2006-10-11, dgoodmaniii <dg*********@hotmail.comwrote:
[snip]
So, to summarize: Firefox applies the white-space: nowrap; only to the
<lielement in which I actually put it; IE applies it to the entire
<ul>. This forced me to put in a manual break which I'd like to get
rid of, if I can.

Is this a bug in IE?
Evidently. Your understanding of what should happen is correct.
If so, is there a workaround?
Don't know. Stab in the dark, but you could try replacing the spaces in
the <li>s with &nbsp; and then not using white-space: nowrap.
Oct 11 '06 #2
dgoodmaniii wrote:
>
http://gorpub.freeshell.org

So, to summarize: Firefox applies the white-space: nowrap; only to the
<lielement in which I actually put it; IE applies it to the entire
<ul>.
Use the white-space property on the <aelement instead of the <li>

--
Berg
Oct 11 '06 #3
Use the white-space property on the <aelement instead of the <li>

Great; that did the trick. Don't know why I couldn't think of it. Now
if I could just get IE to quit putting that stupid blue border around
the image link...

Thanks to all who helped out. It's also good to know that my thoughts
about proper behavior were correct.

Oct 11 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Gabe Moothart | last post by:
I'm having a format problem in ie 6. Within one large table cell, I've got a nested table, and a link below it. I would like the link to be right-justified in the cell. The nested table has a...
0
by: Mark Moore | last post by:
I'm trying to layout a couple text input fields and their corresponding labels without using a table. When I was trying to debug my understanding of CSS, I was *very* surprised to see that span's...
3
by: Robert Cerny | last post by:
Hi everybody, I encounter the following layout problem in IE 6.0.28: Even on specifying "white-space: nowrap" and "overflow: hidden" the paragraph shoots out over the boundaries of the width...
2
by: Nathan Sokalski | last post by:
I want to create TD tags with the nowrap property. I have a user control which sets the Wrap property of a TableCell to False when dynamically creating a table as follows: cellCurrButton.Wrap =...
3
by: Kevin Lawrence | last post by:
Hi What should be used instead of nowrap in a table cell? VS2005 advises me to use a newer construct... Thanks Kev
1
by: Katie | last post by:
Hi, I was wondering is there any way to change the width property of a table cell <Td id="test"to no wrap by using document.getElementById(test).SOMEMETHOD Thanks for your time and help :)
3
by: Nathan Sokalski | last post by:
I am working on making my pages as xhtml compliant as possible (even though I am still using XHTML 1.0 Transitional). On the following page: http://www.w3schools.com/tags/tag_td.asp it says...
4
by: mosesdinakaran | last post by:
Can any one explain how the rule is applied for the following Regular expression $Str = 'the red king'; $Pattern = '/((red|white) (king|queen))/'; preg_match($Pattern,$Str,$Val); Result:
0
by: anand4160 | last post by:
i use nowrap="nowrap" attribuate to fix my UI for IE 6 , now when i am trying to run the same code in IE 8 its not working. The code is simple to display table. nowrap="nowrap" is written in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.