Template:TU-Delft css
From 2012.igem.org
(Difference between revisions)
Line 301: | Line 301: | ||
} | } | ||
+ | /* dropdown */ | ||
+ | #nav li:hover > ul { | ||
+ | display: block; | ||
+ | } | ||
+ | /* level 2 list */ | ||
+ | #nav ul { | ||
+ | display: none; | ||
+ | |||
+ | margin: 0; | ||
+ | padding: 0; | ||
+ | width: 215px; /* ändra bredd på dropdown */ | ||
+ | position: absolute; | ||
+ | z-index:1; | ||
+ | top: 35px; | ||
+ | left: 0; | ||
+ | border-bottom: 0px solid #6699cc; /*#4ba6d5; blåa längst ner på dropdown. */ | ||
+ | } | ||
+ | #nav ul li { | ||
+ | float: none; | ||
+ | margin: 0; | ||
+ | padding: 0; | ||
+ | border-bottom: 1px solid #2d2d2d; /* Avskiljare i dropdown. */ | ||
+ | line-height: 35px; | ||
+ | } | ||
+ | } | ||
/* rounded corners of first and last link */ | /* rounded corners of first and last link */ | ||
Line 390: | Line 415: | ||
/* ******************************************************************* */ | /* ******************************************************************* */ | ||
/* SHOW SUBMENU 1 */ | /* SHOW SUBMENU 1 */ | ||
- | # | + | #menu li:hover ul, #menu li.over ul { |
display:block; | display:block; | ||
} | } | ||
- | # | + | #menu li:hover ul ul, #menu li.over ul ul { |
display:none; | display:none; | ||
} | } | ||
/* SHOW SUBMENU 2 */ | /* SHOW SUBMENU 2 */ | ||
- | # | + | #menu ul li:hover ul, #menu ul li.over ul { |
display:block; | display:block; | ||
} | } |
Revision as of 21:41, 4 September 2012