Team:TU-Delft/Test
From 2012.igem.org
(Difference between revisions)
Line 5: | Line 5: | ||
<style type="text/css"> | <style type="text/css"> | ||
- | # | + | |
- | + | ||
+ | #navLaksh { | ||
+ | position:fixed; | ||
width:850px; | width:850px; | ||
top:15px; | top:15px; | ||
Line 19: | Line 21: | ||
/*letter-spacing:1px;*/ | /*letter-spacing:1px;*/ | ||
text-transform:uppercase; | text-transform:uppercase; | ||
- | |||
- | |||
- | |||
- | |||
- | |||
} | } | ||
- | #nav | + | #nav li { /*float the main list items*/ |
- | + | position:static; | |
- | background: white; | + | margin: 0; |
+ | float: left; | ||
+ | display: inline; | ||
+ | padding:0 3px; | ||
+ | background:white ; | ||
text-align:center; | text-align:center; | ||
- | + | width:90px; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | width: | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
} | } | ||
+ | #navLaksh li:hover { position: relative } | ||
+ | #navLaksh li:hover > a { | ||
+ | background: #021A1A; | ||
+ | |||
+ | box-shadow: 5px 5px 25px #000; | ||
+ | -moz-box-shadow: 5px 5px 25px #000; | ||
+ | -webkit-box-shadow: 5px 5px 25px #000; | ||
+ | |||
+ | border-radius: 10px; | ||
+ | -moz-border-radius: 10px; | ||
+ | -webkit-border-radius: 10px; | ||
+ | } | ||
+ | #navLaksh li.sub:hover > a { | ||
+ | border-radius: 10px 10px 0 0; | ||
+ | -moz-border-radius: 10px 10px 0 0; | ||
+ | -webkit-border-radius: 10px 10px 0 0; | ||
+ | } | ||
- | # | + | #navLaksh li a { |
- | + | color: #fff; | |
- | + | font-weight: bold; | |
- | + | text-decoration: none; | |
- | + | padding: 12px; | |
- | + | display: block; | |
- | + | } | |
- | + | #navLaksh li a:hover { background-color: #021A1A; } | |
- | + | ||
- | } | + | #navLaksh li ul { |
+ | background: #fff; | ||
+ | margin-top: -2px; | ||
+ | display: none; | ||
+ | } | ||
+ | #navLaksh li:hover ul { | ||
+ | display:block; | ||
+ | position:absolute; | ||
+ | } | ||
- | # | + | #navLaksh li ul { |
- | + | background: rgba(255,255,255,0.5); | |
- | + | padding: 10px 5px; | |
- | + | ||
- | + | box-shadow: 5px 5px 25px #000; | |
- | + | -moz-box-shadow: 5px 5px 25px #000; | |
- | + | -webkit-box-shadow: 5px 5px 25px #000; | |
- | + | ||
- | + | border-radius: 0px 15px 15px 15px; | |
- | + | -moz-border-radius: 0px 15px 15px 15px; | |
- | + | -webkit-border-radius: 0px 5px 5px 5px; | |
- | + | } | |
- | + | #navLaksh li ul li a, #navLaksh li ul li a:hover { | |
- | + | background: transparent; | |
- | + | color: #000; | |
- | + | width: 150px; | |
- | + | font-size: 0.95em; | |
- | + | font-weight: normal; | |
- | + | } | |
- | + | #navLaksh li ul li a:hover { text-decoration: underline; | |
- | + | box-shadow: none; | |
- | + | -moz-box-shadow: none; | |
- | + | -webkit-box-shadow: none; | |
- | + | ||
- | } | + | border-radius: 0; |
- | + | -moz-border-radius: 0; | |
- | # | + | -webkit-border-radius: 0; |
- | + | } | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | } | + | |
- | # | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | } | + | |
Line 141: | Line 111: | ||
<body> | <body> | ||
- | <ul id=" | + | <ul id="navLaksh"> |
<li class="on"><a href="https://2012.igem.org/Team:TU-Delft">Home</a></li> | <li class="on"><a href="https://2012.igem.org/Team:TU-Delft">Home</a></li> |
Revision as of 02:25, 27 October 2012