Team:Uppsala/navbar.css

From 2014.igem.org

(Difference between revisions)
Line 6: Line 6:
   margin:0;padding:0;
   margin:0;padding:0;
   position:absolute;
   position:absolute;
 +
  width:100%;
}
}
#menu ul a {
#menu ul a {
Line 21: Line 22:
   display: block;
   display: block;
   padding: 4px;
   padding: 4px;
-
   width:12.5%;
+
   width:100%;
}
}
#menu ul ul {
#menu ul ul {

Revision as of 15:01, 23 June 2014

  1. menu {
 background: #333;
 height: 30px;

}

  1. menu ul {
 margin:0;padding:0;
 position:absolute;
 width:100%;

}

  1. menu ul a {
 text-decoration: none;

}

  1. menu ul li {
 list-style: none;
 float: left;
 position: relative;

}

  1. menu ul li a {
 background: #333;
 color: #fff;
 border: 1px solid #333;
 display: block;
 padding: 4px;
 width:100%;

}

  1. menu ul ul {
 padding:0;
 overflow: hidden;

}

  1. menu ul ul li {
 float: none;
 display: none;
 border-bottom: 1px solid #ccc;
 border-left: 1px solid #ccc;
 border-right: 1px solid #ccc;  

}

  1. menu ul ul li a {
 background: #f0f0f0;
 color: #333;
 border:none;

}

  1. menu ul ul li a:hover {
 background: #ccc;

}

  1. menu ul li a:hover,
  2. menu ul li:hover ul li {
 display:block !important;

}