SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Help with menu height

  1. #1
    SitePoint Zealot
    Join Date
    Jun 2004
    Location
    Manchester
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Help with menu height

    Can anyone help me replicate what I've achieved in IE with my menu in Firefox please?

    http://www.heaven-spa.co.uk/test.htm

    As you can see in firefox the hover on the menu only has the height of the text but in IE it fills the nav bar top and bottom. I want to replicate what's happening in IE but can't for the life of me work it out.

    Thanks in advance.

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    SitePoint Award Recipient Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    37,781
    Mentioned
    99 Post(s)
    Tagged
    3 Thread(s)
    HI,

    Just set the default padding and margins of the ul to zero and move the line-height into the anchor for both browsers.
    Code:
    #navcontainer ul{margin:0;padding:0}
    #navlist li {
     margin: 0;
     padding: 0;
     display: inline;
     list-style-type: none;
    }
    #navlist a {
     float: left;
     padding-right: 17px;
     padding-left: 17px;
     font-weight: bold;
     text-decoration: none;
     font-size: 0.8em;
     line-height: 51px;
    }
    * html #navlist a {}/* not needed*/
    
    That should sort it out

  3. #3
    SitePoint Zealot
    Join Date
    Jun 2004
    Location
    Manchester
    Posts
    122
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Paul.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •