Team:Shenzhen BGIC 0101/menu

From 2013.igem.org

Revision as of 08:19, 23 August 2013 by Czh (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  • MENU */
  1. nav_con{

}

  1. nav {
background: #e5e5e5;
margin: 0; padding: 0;
border: 0px solid white;
border-bottom: none;

}

  1. nav li a, #nav li {
float: left;

}

  1. nav li {
list-style: none;
position: relative;

}

  1. nav li a {
padding: 1em 2em;
text-decoration: none;
color: white;
background: #292929;
background: -moz-linear-gradient(top, black, #3c3c3c 1px, #292929 25px);
background: -webkit-gradient(linear, left top, left 25, from(black), color-stop(4%, #3c3c3c), to(#292929));
border-right: 1px solid #3c3c3c;
border-left: 1px solid #292929;
border-bottom: 1px solid #232323;
border-top: 1px solid #545454;

}

  1. nav li a:hover {
background: #2a0d65;
background: -moz-linear-gradient(top, #11032e, #2a0d65);
background: -webkit-gradient(linear, left top, left bottom, from(#11032e), to(#2a0d65));

}


/* Submenu */

.hasChildren { position: absolute; width: 5px; height: 5px; background: black; right : 0; bottom: 0; }

  1. nav li ul {
display: none;
position: absolute;
left: 0;
top: 100%;
padding: 0; margin: 0;

}

  1. nav li:hover > ul {
display: block;

}

  1. nav li ul li, #nav li ul li a {
float: none;

}

  1. nav li ul li {
_display: inline; /* for IE6 */

}

  1. nav li ul li a {
width: 150px;
display: block;

}

/* SUBSUB Menu */

  1. nav li ul li ul {
display: none;

}

  1. nav li ul li:hover ul {
left: 100%;
top: 0;

}


  1. nav li ul