Monday, 28 April 2014

Dropdown menu using CSS

Dropdown menu using CSS       

ul#menu, ul#menu ul.sub-menu {
padding: 0;
margin: 0;
width: 52%;
position: absolute;
top: 68px;
font: normal 18px 'Trebuchet MS', Arial, Helvetica;
display: inline-block;
height: 24px;
left: 39%;
ul#menu li, ul#menu ul.sub-menu li {
    list-style-type: none;
    display: inline-block;
text-decoration: none;
/*Link Appearance*/
ul#menu li a, ul#menu li ul.sub-menu li a {
text-decoration: none;
padding: 5px;
display: inline-block;

ul.sub-menu li a {
width: 100%;
background-color: black;
ul.sub-menu li{
background-color: black;
width: 164%;

/*Make the parent of sub-menu relative*/
ul#menu li {
    position: relative;
#menu li a:hover{
background: url(../images/hover_menu_link.gif) repeat-x left bottom;
color: #f51a1c;
/*sub menu*/
ul#menu li ul.sub-menu {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100px;
ul#menu li:hover ul.sub-menu {
<li><a href="#">Indoor Range</a>    
                    <ul class="sub-menu">
                        <li><a href="#">member</a></li>
                        <li><a href="#">non member</a></li>
                        <li><a href="#">About</a></li>
                        <li><a href="#">Contact</a></li>

Subscribe Dr-Wordpress for Important Knowledge of wordpress..your's suggestions are most welcomed.

No comments:

Post a Comment