Team:CityU HK/Template/CSS

From 2014.igem.org

(Difference between revisions)
Line 109: Line 109:
.sub-sidemenu a {color: #666;}
.sub-sidemenu a {color: #666;}
 +
#menu li{
 +
position:relative;
 +
float:left;
 +
list-style:none;
 +
}
 +
#menu a{
 +
color:white;
 +
background:black;
 +
padding:5px;
 +
text-decoration:none;
 +
width:98px;
 +
display:block;
 +
text-align:center;
 +
font-family:arial;
 +
font-size:14px;
 +
}
 +
#menu{
 +
margin-left:auto;
 +
margin-right:auto;
 +
width:900px;
 +
}
 +
#menu a:hover{
 +
background:deepskyblue;
 +
}
 +
 +
#menu li ul{
 +
background:black;
 +
/* display:none; */
 +
position:absolute;
 +
text-align:center;
 +
top:25px;
 +
        right:0px;
 +
}
 +
#menu li:hover ul{
 +
display:block;
 +
}
 +
#dropdown_menu li ul li{
 +
position:relative;
 +
}

Revision as of 15:24, 26 July 2014