473,394 Members | 1,715 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,394 software developers and data experts.

width of drop-down <li> not 100% in IE

I have created a vanilla drop-down menu and want the width of the
sub-menu elements to be as wide as the widest element in the drop-down.
This would make each flush on the right border.

It works in Firefox but in IE I see two strange things. 1st: the width
of the first drop-down is as wide as the entire menu bar. 2nd: the
elements of the remaining drop-down menus have widths of 'auto';

div#listmenu ul li ul li {
width: 100%;
}

Jan 6 '07 #1
1 3142

skijor wrote:
I have created a vanilla drop-down menu and want the width of the
sub-menu elements to be as wide as the widest element in the drop-down.
This would make each flush on the right border.

It works in Firefox but in IE I see two strange things. 1st: the width
of the first drop-down is as wide as the entire menu bar. 2nd: the
elements of the remaining drop-down menus have widths of 'auto';

div#listmenu ul li ul li {
width: 100%;
}
The problem seems to be that the list elements are inheriting their
width from the listmenu. So 100% in IE 6 means the width of the
listmenu and not the width of each <li>. How do I break this?

Jan 7 '07 #2

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

Similar topics

7
by: Jeff Thies | last post by:
I'm trying to do a nav list using list items. Roughly this is putting links styled display: block and with a background color. In IE5 (windows, haven't tried Mac yet), adding the display:...
27
by: Thomas Mlynarczyk | last post by:
Hello, I noticed that IE seems to put some kind of default margins on <li> elements and the only way to get rid of them seems to be asigning negative margins. To make things worse, IE5 and IE6...
14
by: Philip Herlihy | last post by:
I've been trying to create a simple vertical navigation bar, using (as recommended) an unordered list (UL) of hyperlinks. I'd like to have a hover effect, so I have to style the links themselves....
12
by: Dave Brown | last post by:
Hi all, Is it possible to have 4 LI items in a <UL> with the LI width set to width:25% so that each one sizes to 25% of whatever its container width is ? It doesnt seem so, the width doesnt...
12
by: Tyrone Slothrop | last post by:
OK, I give up! I am trying to convert a JavaScript rollover button script to CSS. It is composed of background colors and font colors with the current page displaying the "over" state. I...
1
by: Gareth James via .NET 247 | last post by:
I have an expression that when run uses 100% cpu for over 1minute. I can change the expression so this does not happen, but couldsome one explain why this happens so that I don't do it again ...
0
by: Fred Lock | last post by:
The below tab menu derived from the earlier post display each tab sized according to its content, plus additional space by the 'width:100%;' causing the table to stretch the full width of the...
3
by: Syl | last post by:
Hi Group - trying my question again. :-) I'dl like to use CSS to replicate the top navigation like this : http://www.checkeredshirt.com/jo-menu/ Currently - this nav menu everything is in a...
31
by: Sarita | last post by:
Hello, this might sound stupid, but I got a really nice homepage template which unfortunately is a 3-Column Fixed Width CSS format. Now I don't have any content for the right column and would...
1
by: praveenb000 | last post by:
Hi every one, I designed a web page, having horizontal menu using UL and LI tags; I need to be set rollover effect for a menu items. whenever user hover on a menu item, the entire...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.