Difference between revisions of "Template:Manchester/CSS1"

m
m
Line 9: Line 9:
  
  
/********************************* Hyperlink formitting********************************/
 
a:link {
 
    color: green;
 
    background-color: transparent;
 
    text-decoration: none;
 
}
 
a:visited {
 
    color: green;
 
    background-color: transparent;
 
    text-decoration: none;
 
}
 
a:hover {
 
    color: gold;
 
    background-color: transparent;
 
    text-decoration: none;
 
}
 
a:active {
 
    color: gold;
 
    background-color: purple;
 
    text-decoration: underline;
 
}
 
  
 
/********************************* menu bar formatting ********************************/
 
/********************************* menu bar formatting ********************************/
.dropdown{
+
nav ul{
 
     margin-left: -10px;
 
     margin-left: -10px;
 
     margin-top:-15px;
 
     margin-top:-15px;
Line 39: Line 18:
 
     position: fixed;
 
     position: fixed;
 
     display:inline;
 
     display:inline;
     width: 82.2%;
+
     width: 81.8%;
 
     top: 5px;
 
     top: 5px;
 
     left: 5px;
 
     left: 5px;
Line 48: Line 27:
 
}
 
}
  
.dropdown_content {
+
nav ul li {
 
     float: left;
 
     float: left;
 
     display: block;
 
     display: block;
 
}
 
}
  
.dropdown_content a{
+
nav ul li:link a{
 +
    color: white;
 
     display: block;
 
     display: block;
 +
    text-align: center;
 +
    text-decoration: none;
 +
    padding: 5px 30px;
 +
}
 +
 +
 +
nav ul li:visited a{
 
     color: white;
 
     color: white;
 +
    display: block;
 
     text-align: center;
 
     text-align: center;
     text-decoration:none;
+
     text-decoration: none;
 
     padding: 5px 30px;
 
     padding: 5px 30px;
 
}
 
}
  
.dropdown_content a:hover:not(.active){
+
nav ul li a:hover{
 
     color: black;
 
     color: black;
 
     background-color:orange;
 
     background-color:orange;
Line 74: Line 62:
 
}
 
}
  
.active a{
+
.active a:link{
 
     display: block;
 
     display: block;
 
     color: green;
 
     color: green;
Line 82: Line 70:
 
     background-color:gold;
 
     background-color:gold;
 
}
 
}
 +
 +
.active a:visited{
 +
    display: block;
 +
    color: green;
 +
    text-align: center;
 +
    text-decoration:none;
 +
    padding: 5px 30px;
 +
    background-color:gold;
 +
}
 +
  
 
.active a:hover {
 
.active a:hover {
Line 231: Line 229:
  
 
</head>
 
</head>
 +
 
<body>
 
<body>
 
<!-- MathJax (LaTeX for the web) -->
 
<!-- MathJax (LaTeX for the web) -->
Line 238: Line 237:
 
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
 
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
  
 +
<nav>
  
<ul class="dropdown">
+
<ul>
 
   <li class="active"><a href="https://2016.igem.org/Team:Manchester"><strong>Home</strong></a></li>
 
   <li class="active"><a href="https://2016.igem.org/Team:Manchester"><strong>Home</strong></a></li>
   <li class="dropdown_content"><a href="https://2016.igem.org/Team:Manchester/Team"><strong>Team</strong></a></li>
+
   <li ><a href="https://2016.igem.org/Team:Manchester/Team"><strong>Team</strong></a></li>
 +
 
 +
 
 +
 
 
   <li class="dropdown_content"><a href="https://2016.igem.org/Team:Manchester/Description"><strong>Project</strong></a></li>
 
   <li class="dropdown_content"><a href="https://2016.igem.org/Team:Manchester/Description"><strong>Project</strong></a></li>
 
   <li class="dropdown_content"><a href="https://2016.igem.org/Team:Manchester/Parts"><strong>Parts</strong></a></li>
 
   <li class="dropdown_content"><a href="https://2016.igem.org/Team:Manchester/Parts"><strong>Parts</strong></a></li>
Line 249: Line 252:
 
   <li class="dropdown_content"><a href="https://2016.igem.org/Team:Manchester/Model"><strong>Awards</strong></a></li>
 
   <li class="dropdown_content"><a href="https://2016.igem.org/Team:Manchester/Model"><strong>Awards</strong></a></li>
 
</ul>
 
</ul>
 +
 +
</nav>
 +
 +
</html>

Revision as of 23:40, 16 July 2016