How to auto resize in css

Discussion in 'HTML & Website Design' started by ali123, Jan 27, 2009.

  1. #1
    Hey guys I was wondering how I can auto resize my navbar in css? I tried putting 100% but it didn't work.

    thank you, Ali

    here is the code:

    #navbar {
    background: #0066ff url(images/navbar.gif);
    width:100%;
    height: 100%;
    font-size: 11px;
    font-family: Arial, Tahoma, Verdana;
    color: #000000;
    font-weight: bold;
    margin: 0px auto 0px;
    padding: 0px 0px 0px 0px;
    border-top: 0px solid #000000 ;
    border-bottom: 0px solid #000000 ;
    overflow: hidden;
    }
     
    ali123, Jan 27, 2009 IP
  2. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #2
    just write auto instead of 100%
     
    crivion, Jan 27, 2009 IP