473,401 Members | 2,125 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,401 software developers and data experts.

CSS List bug in Mozilla

This site http://www.nczoo.org has a nagging bug. In Mozilla the left
nav list expands into the content area. Opera and IE (MAC/WIN) seem
fine. Any advice would be appreciated.

Jul 21 '05 #1
3 1666
"th************@nospam.yahoo.com" <th************@yahoo.com> wrote:
This site http://www.nczoo.org has a nagging bug. In Mozilla the left
nav list expands into the content area. Opera and IE (MAC/WIN) seem
fine. Any advice would be appreciated.


The links within #mainnav are wider than their container because you
tell them to be.

ul#mainnav li a {
display: block;
margin: 0px 0px 0px 0px;
padding: 6px 6%;
width: 100%;
}

100% + 6% + 6% = 112% so the links will be wider than their container
so it should be no surprise that they spill over into the adjacent
blocks.

Because you have no doctype Opera 7, Mac IE5 and Win IE5 go into
Quirks mode where they emulate the bugs of Win IE5 and older and
incorrectly place the padding inside the width. Even in Quirks mode
Mozilla gets this right and places the padding outside the width.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 21 '05 #2
On 2 Feb 2005 06:44:37 -0800 th************@nospam.yahoo.com wrote:
This site http://www.nczoo.org has a nagging bug. In Mozilla the left
nav list expands into the content area. Opera and IE (MAC/WIN) seem
fine. Any advice would be appreciated.

First thing I dislike is the fact that I have no right click.
Guess what? I don't need it that bad.
ctrl+u allows me to see your source code anyway.
Whilst moving my mouse about the screen, I note various blank spaces have
links.
As my cursor becomes a hand instead of an arrow.

As steve pointed out, you can't have a width greater than 100% inside a
container and expect the contents to remain inside.

Also, I noted you have a spacer of 1 pixel. Why?
A totally useless idea.
If you want space, define the line height for greater seperation, or define
the division differently, or include some other text tricks.
Jul 21 '05 #3

Steve Pugh wrote:
"th************@nospam.yahoo.com" <th************@yahoo.com> wrote:
This site http://www.nczoo.org has a nagging bug. In Mozilla the leftnav list expands into the content area. Opera and IE (MAC/WIN) seem
fine. Any advice would be appreciated.


The links within #mainnav are wider than their container because you
tell them to be.

ul#mainnav li a {
display: block;
margin: 0px 0px 0px 0px;
padding: 6px 6%;
width: 100%;
}

100% + 6% + 6% = 112% so the links will be wider than their container
so it should be no surprise that they spill over into the adjacent
blocks.

Because you have no doctype Opera 7, Mac IE5 and Win IE5 go into
Quirks mode where they emulate the bugs of Win IE5 and older and
incorrectly place the padding inside the width. Even in Quirks mode
Mozilla gets this right and places the padding outside the width.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>


Steve-

Thanks for your reply. Being a little new to CSS, I appreciate the time
to look over the CSS for what might seem to be a obvious error to
someone more experienced.

I made the change recommened. While not pixel perfect, it's passable.

Jul 21 '05 #4

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

Similar topics

2
by: devpoint | last post by:
Advanced DHTML Dropdown List component (Javascript,ASP,.NET,PHP) enhances usability of large dropdown lists with type & select feature. It suggests possible matches for entries you type in the...
1
by: Rod Early | last post by:
I need to know when the select element's dropdown list is opened (as when the user clicks on the arrow or does ALT-downarrow from the keyboard). Similarly, I need to known when the dropdown list...
4
by: ÂÑTØÑ | last post by:
Hi, I was looking for a list of commands, but I can't find it. It's about commands you can type in the Internet Explorer adress bar, to get some information about a website. For instance...
3
by: David Ross | last post by:
I sometimes place a sidebar on a Web page, using the following: ..sideright { float: right; background-color: #fff; width: 40%; font-size: 90%; text-align: justify; margin-left: 1em;...
11
by: A.Translator | last post by:
I have an unordered list styled like this: ul { background-color:#FFFFFF; text-align:left; display: block; text-decoration:none; list-style-position:inside; list-style:none; }
9
by: Pierre Jelenc | last post by:
Is there a way to center (horizontally) a UL list of unknown width? I can put it in a DIV that's centered with "margin-left: auto; margin-right: auto;" but I then have to specify a width; otherwise...
6
by: Haines Brown | last post by:
I find that when I use list-style-image with galeon or mozilla, padding is inserted between the symbol image and the following list text, while under IE 5.0 it seems to be inserted before the image...
8
by: dp | last post by:
Is there anyway to have the bullet color of a <li> be a different color than the text without using an image? dp
1
by: Jim Moe | last post by:
Hello, I am (slowly) in the process of changing a table-based layout to CSS/div-based. One area that uses tables a lot is the main nav menu. I have discovered that tables have advantage: all...
7
by: David Laub | last post by:
I have stumbled across various Netscape issues, none of which appear to be solvable by tweaking the clientTarget or targetSchema properties. At this point, I'm not even interested in "solving"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
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.