Template:MIT-header

From 2011.igem.org

(Difference between revisions)
 
(90 intermediate revisions not shown)
Line 1: Line 1:
-
<html>
+
__NOTOC__<html lang="en">  
 +
 
<head>
<head>
 +
<!-- wiki hacks -->
<style type="text/css">
<style type="text/css">
#globalwrapper {
#globalwrapper {
Line 23: Line 25:
}
}
#top-section {
#top-section {
 +
   
     background-image: url('https://static.igem.org/mediawiki/2011/7/7f/MIT-header.jpg');
     background-image: url('https://static.igem.org/mediawiki/2011/7/7f/MIT-header.jpg');
     background-position: top;
     background-position: top;
Line 29: Line 32:
     border-width:0px;
     border-width:0px;
     border-top-width:1px;
     border-top-width:1px;
 +
}
}
 +
 +
#content {
#content {
     border-left-width:0px;
     border-left-width:0px;
Line 36: Line 42:
     width:965px;
     width:965px;
}
}
-
<html>
+
#menubar {
-
<head>
+
    background-color: white;
-
<style type="text/css">
+
}
-
ul
+
#menubar ul li a {
-
{
+
    color: #999999; }
 +
    .right-menu li a {
 +
    color: black;
 +
    background-color: white;
 +
}
 +
 
 +
#navbar
 +
ul.navbar {
float:left;
float:left;
width:100%;
width:100%;
Line 47: Line 60:
list-style-type:none;
list-style-type:none;
}
}
-
a
+
 
-
{
+
ul.navbar a {
float:left;
float:left;
-
width:6em;
+
text-align:center;
 +
width:7em;
text-decoration:none;
text-decoration:none;
color:white;
color:white;
-
background-color:purple;
+
background-color:#1A2B32;
padding:0.2em 0.6em;
padding:0.2em 0.6em;
border-right:1px solid white;
border-right:1px solid white;
}
}
-
a:hover {background-color:#ff3300;}
+
ul.navbar a:hover {background-color:#A3ABAE;}
-
li {display:inline;}
+
ul.navbar li {display:inline;}
 +
 
 +
#long {
 +
width:10em;
 +
}
 +
 
 +
 
 +
.navbar {
 +
padding:0 20px;
 +
}
 +
 
</style>
</style>
</head>
</head>
<body>
<body>
-
<ul>
 
-
<li><a href="#">Link one</a></li>
 
-
<li><a href="#">Link two</a></li>
 
-
<li><a href="#">Link three</a></li>
 
-
<li><a href="#">Link four</a></li>
 
-
</ul>
 
-
<p>
+
 
-
In the example above, we let the ul element and the a element float to the left.
+
<!--navigation menu-->
-
The li elements will be displayed as inline elements (no line break before or after the element). This forces the list to be on one line.
+
<ul class="navbar">
-
The ul element has a width of 100% and each hyperlink in the list has a width of 6em (6 times the size of the current font).
+
<li><a href="https://2011.igem.org/Team:MIT">HOME</a></li>
-
We add some colors and borders to make it more fancy.
+
<li><a href="https://2011.igem.org/Team:MIT/Project/">PROJECT</a></li>
-
</p>
+
<li><a href="https://2011.igem.org/Team:MIT/Results/">DATA</a></li>
 +
<li><a href="https://2011.igem.org/Team:MIT/Notebook/">NOTEBOOK</a></li>
 +
<li><a href="https://2011.igem.org/Team:MIT/Tools/">MODEL</a></li>
 +
<li><a href="https://2011.igem.org/Team:MIT/Partners/">PARTNERS</a></li>
 +
<li><a href="https://2011.igem.org/Team:MIT/Team/Undergraduates">TEAM</a></li>
 +
<li><a id="long" href="https://2011.igem.org/Team:MIT/HumanPractices/">HUMAN PRACTICES</a></li>
 +
</ul>
</body>
</body>
</html>
</html>

Latest revision as of 02:28, 29 October 2011