need help for css

Discussion in 'CSS' started by upendrau, Sep 11, 2009.

  1. #1
    hello,
    i m using below code for my navigations but there is a problem.
    when i check it on Internet Explorer its working fine, but when i checking it on firefox, navigation alignment move to right.

    please help me

    #nav
    {
    clear: both;
    width: 760px;
    height: 70px;
    background-color: #8c0022;
    }

    #nav ul
    {
    width: 760px;
    height: 70px;
    }

    #nav ul li
    {
    display: inline;
    }

    #nav ul li a
    {
    width:152px;
    height: 70px;
    background: #000000 url(../img/whyus.jpg) no-repeat;
    float: left;
    }




    i m using it in html:

    <div id="nav">
    <ul>
    <li><a href="#"></a></li>
    <li><a href="#"></a></li>
    <li><a href="#"></a></li>
    <li><a href="#"></a></li>
    <li><a href="#"></a></li>
    </ul>
    </div>



    please help

    thanks in advance
     
    upendrau, Sep 11, 2009 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Set ul {margin-left: 0; padding-left: 0;}

    cheers,

    gary
     
    kk5st, Sep 11, 2009 IP
  3. upendrau

    upendrau Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thank you very much for you help
     
    upendrau, Sep 12, 2009 IP