CSS List bug in Mozilla

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • the_ainbinders@nospam.yahoo.com

    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.

  • Steve Pugh

    #2
    Re: CSS List bug in Mozilla

    "the_ainbinders @nospam.yahoo.c om" <the_ainbinders @yahoo.com> wrote:
    [color=blue]
    >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.[/color]

    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 <steve@pugh.net > <http://steve.pugh.net/>

    Comment

    • Richard

      #3
      Re: CSS List bug in Mozilla

      On 2 Feb 2005 06:44:37 -0800 the_ainbinders@ nospam.yahoo.co m wrote:
      [color=blue]
      > 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.[/color]


      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.


      Comment

      • the_ainbinders@nospam.yahoo.com

        #4
        Re: CSS List bug in Mozilla


        Steve Pugh wrote:[color=blue]
        > "the_ainbinders @nospam.yahoo.c om" <the_ainbinders @yahoo.com> wrote:
        >[color=green]
        > >This site http://www.nczoo.org has a nagging bug. In Mozilla the[/color][/color]
        left[color=blue][color=green]
        > >nav list expands into the content area. Opera and IE (MAC/WIN) seem
        > >fine. Any advice would be appreciated.[/color]
        >
        > 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 <steve@pugh.net > <http://steve.pugh.net/>[/color]

        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.

        Comment

        Working...