[CSS]Help whit navigation bar

Discussion in 'Web Design' started by jekeke, Feb 27, 2013.

to remove all ads.
  1. jekeke

    jekeke New Member

    Messages:
    1
    So i have a bar that renders the background one block at a time but i just wanna render the hole image in 1 time and cover the hole x-axis from left to right
    I wanna make it look like the nav bar of this site: nedercraft.nl
    And this is my website: funnycraft.nl

    HTML:
    /* 5. NAVIGATION MENU
    * ============================ */
    #nav{
    clear: both;
    padding-top: 5px;
    }
    
    #nav ul {
    z-index: 99;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
    }
    #nav ul li{
    position: relative;
    display: block;
    float: left;
    margin: 0;
    padding: 0;
             background: url(http://united-craftopia.cixx6.com/wp-content/uploads/2013/02/menu.png) repeat-x;
    }
    #nav ul li a{
    display: block;
    float: left;
    position: relative;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0 15px;
    height: 40px;
    line-height: 40px;
    }
    #nav ul.sub-menu{
    display: none;
    position: absolute;
    top: 42px;
    width: 190px;
    left: 10px;
    z-index: 9999;
    background: #ffffff;
    -webkit-box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.4);
    box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.4);
    }
    #nav ul.sub-menu a{
    display: block !important;
    width: 160px;
    text-transform: none;
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid #efefef;
    }
    #nav ul li ul li ul{
    margin: -42px 0 0 180px;
    }
    #nav .sf-sub-indicator{
    display: none;
    }
    #nav ul.sub-menu li.current-menu-item a,
    #nav ul.sub-menu li.current-page-ancestor a,
    #nav ul.sub-menu li.current-menu-ancestor a{
    color: #4581B9 !important;
    }
     
  2. leroy30

    leroy30 New Member

    Messages:
    485
    Put the background on the UL element instead of the LI element?
     

Share This Page