Ver Mensaje Individual
  #7 (permalink)  
Antiguo 11/09/2009, 17:27
kseso?
Colaborador
 
Fecha de Ingreso: junio-2007
Mensajes: 5.798
Antigüedad: 16 años, 11 meses
Puntos: 539
Respuesta: problema con los height de los divs

Bueno, veamos a ver si es esto lo que andas buscando, vb2005
Como verás, sólo hay un div y una lista y se utilizan 3 imágenes.
Código html:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="es-es">
  3. <title>Kseso? jugando con css</title>
  4. <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1" />
  5. <style type="text/css">
  6. * {margin: 0; padding:0; outline: none; border: 0;}
  7. body, html {
  8.     background-color: #000000;
  9.     height: 100%;
  10.     width: 100%;
  11. }
  12. #menu {width: 202px;
  13.   background: transparent url(http://img21.imageshack.us/img21/9074/superior.png) no-repeat;
  14. }
  15. #menu span {
  16.   display: block;
  17.   text-align: center;
  18.   height: 48px;
  19.   line-height: 50px;
  20.   color: #f5f5f5;
  21. }
  22. #menu ul {}
  23. #menu ul li {
  24.   background: transparent url(http://img29.imageshack.us/img29/7453/cuerpo.png) repeat-y;
  25.   list-style-type: none;
  26.   display: block;
  27.   width: 202px;
  28.   text-align: left;
  29. }
  30. #menu ul li a {
  31.   display: block;
  32.   width: 100%;
  33.   padding: 0 0 5px 15px;
  34.   color: #f5f5f5;
  35.   text-decoration: none;
  36. }
  37. #menu ul li.ultimo {background: transparent url(http://img10.imageshack.us/img10/8080/cierre.png) no-repeat 0 bottom; height: 27px; padding:0;}
  38. #menu ul li a:hover {text-decoration: underline;}
  39. </head>
  40. <div id="menu">
  41. <span>Categorías</span>
  42.     <ul>
  43.         <li><a href="#" title="item 1">Item 1</a></li>
  44.         <li><a href="#" title="item 2">Item 2</a></li>
  45.         <li><a href="#" title="item 3">Item 3</a></li>
  46.         <li><a href="#" title="item 4">Item 4</a></li>
  47.         <li class="ultimo"><a href="#" title="item 5">Item 5</a></li>
  48.     </ul>
  49. </div>
  50. </body>
  51. </html>

Un saludo
__________________
Por una web con mucho estilo
+++ CUENTA ABANDONADA. ¿la quieres? +++