Team:Uppsala/navbar.css
From 2014.igem.org
(Difference between revisions)
Line 29: | Line 29: | ||
display: block; | display: block; | ||
padding-top: 15px; | padding-top: 15px; | ||
- | |||
- | |||
padding-bottom: 15px; | padding-bottom: 15px; | ||
width:100%; | width:100%; | ||
Line 50: | Line 48: | ||
border:none; | border:none; | ||
width: calc(100%/9); | width: calc(100%/9); | ||
+ | padding-right: 1px; | ||
+ | padding-left: 1px; | ||
} | } | ||
#menu ul ul li a:hover { | #menu ul ul li a:hover { |
Revision as of 07:54, 24 June 2014
- menu {
background: #333; height: 50px;
}
- menu ul {
margin:0;padding:0; position:absolute; width:100%;
}
- menu ul a {
text-decoration: none;
}
- menu ul li {
list-style: none; float: left; position: relative; width: calc(100%/9);
}
- menu ul li a:hover {
background-color: #fff; }
- menu ul li a {
background: #333; color: #fff; border: 1px solid #333; display: block; padding-top: 15px; padding-bottom: 15px; width:100%;
}
- menu ul ul {
padding:0; overflow: hidden;
}
- menu ul ul li {
float: none; display: none; border-bottom: 1px solid #ccc; border-left: 1px solid #ccc; border-right: 1px solid #ccc;
}
- menu ul ul li a {
background: #f0f0f0; color: #333; border:none; width: calc(100%/9); padding-right: 1px; padding-left: 1px;
}
- menu ul ul li a:hover {
background: #ccc;
}
- menu ul li a:hover,
- menu ul li:hover ul li {
display:block !important;
}
- menu ul li ul li{
width:900%; }