index.html 1.63 KB
Newer Older
roshka committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>Ejercicio menu vertical avanzado</title>
<style type="text/css">
ul.menu {
  width: 180px;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #7C7C7C;
}
ul.menu li {
  border-bottom: 1px solid #7C7C7C;
  border-top: 1px solid #FFF;
  background: #F4F4F4;
}

ul.menu li:hover {
  border-bottom: 1px solid #7C7C7C;
  border-top: 1px solid #FFF;
  background: #E4E4E4;
}

ul.menu li a {
  padding: .2em 0 .2em 1.3em;
  display: block;
  text-decoration: none;
  color: #333;
}

.logo{
  position: absolute;
  background-image: url("flecha_inactiva.png");
  height: 16px;
  width: 16px;
}

ul.menu li:hover .logo{
  position: absolute;
  background-image: url("flecha_activa.png");
  height: 16px;
  width: 16px;
}
</style>
</head>

<body cz-shortcut-listen="true">
<ul class="menu">
  <li>
    <div class ="logo"></div>
    <a href="#" title="Enlace generico">Elemento 1</a>
  </li>
  <li>
    <div class ="logo"></div>
    <a href="#" title="Enlace generico">Elemento 2</a>
  </li>
  <li>
    <div class ="logo"></div>
    <a href="#" title="Enlace generico">Elemento 3</a>
  </li>
  <li>
    <div class = "logo"></div>
    <a href="#" title="Enlace generico">Elemento 4</a>
  </li>
  <li>
    <div class = "logo"></div>
    <a href="#" title="Enlace generico">Elemento 5</a>
  </li>
  <li>
    <div class = "logo"></div>
    <a href="#" title="Enlace generico">Elemento 6</a>
  </li>
</ul>


</body>
</html>