html - chrome style tabbed navigation css3 Dropdown menu -


i used tutorial make navigation need nested elements , unable exact copy of navigation using in project , cannot show menu on hover have tried 5 hours here's want do.

want dropdown menu

jsfiddle

http://jsfiddle.net/arafays/7hjkq/

this html of navigation nested links in first menu need css show them

<nav class="sixteen columns">             <div class="tab-container">                 <ul class="nav clearfix" >                     <li><a href=# >about us</a>                          <ul>                             <li>board of trustees</li>                             <li>gallery</li>                             <li>media coverage</li>                             <li>updates</li>                             <li>newsletter</li>                             <li>about us</li>                             <li>testimonials</li>                             <li>see about</li>                             <li>contact us</li>                             <div class="clearfix"></div>                         </ul>                     </li>                     <li ><a href=# >academic programs</a></li>                                             <li><a href=# >outreach programs</a></li>                     <li><a href=# >vocational program</a></li>                     <li><a href=# >support us</a></li>                     <li><a href=# >donate</a></li>                 </ul>             </div> </nav> 

here css using need styled

ul.nav{   margin: 0;   list-style-type : none;   line-height : 42px;   max-height: 42px;   overflow: hidden;   display: inline-block;   padding-right: 20px } ul.nav > li:nth-child(n).active{   z-index: 2;   background: #fff;   font-weight: bolder; } ul.nav > li:nth-child(n):hover{   z-index: 2;   background: #fff; } ul.nav>li:nth-child(1){     background-color: #79fa6b; } ul.nav>li:nth-child(2){     background-color: #70e663; }  ul.nav>li:nth-child(3){     background-color: #63cc58; }  ul.nav>li:nth-child(4){     background-color: #57b34d; }  ul.nav>li:nth-child(5){     background-color: #4b9942; }  ul.nav>li:nth-child(6){     background-color: #3e8037; }  ul.nav > li{   float : left;   margin : 5px -10px 0;   border-top-right-radius: 25px 170px;   border-top-left-radius: 20px 90px;   padding : 0 45px 0 45px;   height: 170px;   background: #787878;   position : relative;   box-shadow: 0 10px 20px rgba(0,0,0,.7); }  ul.nav > li > a{   display: inline-block;   max-width:100%;   overflow: hidden;   text-overflow: ellipsis;   text-decoration: none;   color: #222; }  ul.nav > li:before{   content : '';   background : transparent;   height: 20px;   width: 20px;   border-radius: 100%;   border-width: 10px;   top: 0px;   border-style : solid;   position : absolute; } ul.nav > li:before{   border-color : transparent transparent transparent;   left: -23px; }  ul.nav > li:after{   border-color : transparent transparent transparent;   -webkit-transform : rotate(-48deg);   right: -17px; } 


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -