SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot Fiska's Avatar
    Join Date
    Jul 2004
    Location
    Dardania - Ancient Illyria
    Posts
    180
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy left navigation problem with moz

    Hi,
    I've been working on leftnavigation on the site, but its not appearing as it should on firefow while in IE is doing fine, can anybody help me solve that
    here are the links where u can find CSS and XHML code of the site:
    http://test.rrota.net/biznesi.html


    thank you
    let's make things easier

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,288
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    You need to clear the default padding and margins from the ul. You also need to specify the correct width.
    Code:
    #nav {
    padding: 0;
    margin: 0;
    width: 151px;
    background-color: #B1D7C3;
    text-align: left;
    float: left;
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    color: #000;
    }
    ul#navlist {margin:0;padding:0}
    #navlist { width: 151px; margin:0; }
    #navlist li {
    border-bottom: solid #50CB90 1px;
    display: block;
    text-align: left;
    padding: 0;
    margin:0;
    list-style: none;
    line-height:25px;/* for ie's gap under list*/
    }
    #navlist a {
    margin: 0;
    padding-left : 12px;
    display: block;
    background: #3BA773;
    color: #000;
    text-decoration:none;
    border:0; 
    list-style: none; 
    width: 139px;
    }
    * html #navlist a{width:151px;w\idth:139px}/* box model hack*/
    #navlist li a:hover {
    background-color: #348E63;
    color: #fff;
    }
    Paul

  3. #3
    SitePoint Zealot Fiska's Avatar
    Join Date
    Jul 2004
    Location
    Dardania - Ancient Illyria
    Posts
    180
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanx Paul, it works I will remember it in future, cuz I know I'll have to deal with the same thing again.
    thanks you
    let's make things easier


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
  •