css3 - CSS dropdown menu design -
i have requirement need work on menu should shown in image below
i have worked in past on simple down-down menu, time requirement bit different. top menu links should change color blue on hover & when on particular page.
sub menus should come in while color & background image used sub-menu should transparent & submenus should show pointer towards parent menu show in image below.
i have looked similar menu example can replicate not lucky find one.
i appreciate if can point me in right direction.
or in in doing it.
i have set example on jsfiddle need add additional feature mentioned above.
meanwhile try work on see if can manage it. not css guru more of developer manages design work also. need asp.net webform based website.
code sample
<body> <nav> <ul> <li><a href="#">home</a></li> <li><a href="#">tutorials</a> <ul> <li><a href="#">photoshop</a></li> <li><a href="#">illustrator</a></li> <li><a href="#">web design</a> <ul> <li><a href="#">html</a></li> <li><a href="#">css</a></li> </ul> </li> </ul> </li> <li><a href="#">articles</a> <ul> <li><a href="#">web design</a></li> <li><a href="#">user experience</a></li> </ul> </li> <li><a href="#">inspiration</a></li> </ul> </nav> </body>
updated:
i have managed far. please check link http://jsfiddle.net/4wrdx/10/
used css *rgba*
nav ul ul { background: rgba(0,0,0,0.2); // used rgba border-radius: 0px; padding: 0; position: absolute; top: 100%; } nav ul ul li a:hover { background: rgba(0,0,0,0.4); // used rgba }
==========
updated arrow
nav > ul > li > ul:after { content: ""; border-left: solid 20px transparent; border-right: solid 20px transparent; display: inline-block; border-bottom: solid 20px rgba(0,0,0,0.7); position: absolute; top: -19px; left: 0; }
Comments
Post a Comment