Ver Mensaje Individual
  #15 (permalink)  
Antiguo 08/07/2009, 10:23
kseso?
Colaborador
 
Fecha de Ingreso: junio-2007
Mensajes: 5.798
Antigüedad: 16 años, 10 meses
Puntos: 539
Respuesta: menus botones cuadrados independientes

Bueno trevol.
Lo prometido es deuda.
Aquí tienes los botones cuadrados alineados horizontalmente, con separación entre ellos, y cada uno con su color:

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; border:0; outline:none; position: relative;}
  7. ul#navlist {
  8. margin-left: 50px;
  9. padding-left:150px ;
  10. }
  11.  
  12. #navlist li  {
  13. display:table;
  14. float:left;
  15. height:8em;
  16. list-style-type:none;
  17. margin:15px;
  18. width:8em;
  19. }
  20.  
  21. #navlist a {
  22. display:table-cell;
  23. height:100%;
  24. position:relative;
  25. text-align:center;
  26. vertical-align:middle;
  27. text-decoration: none;
  28. color: #444;
  29. border: 1px inset #660;
  30. }
  31.  
  32. #navlist a:link.uno {background: #63f;}
  33. #navlist a:link.dos {background: #93f;}
  34. #navlist a:link.tres {background: #f3f;}
  35. #navlist a:link.cuatro {background: #39f;}
  36. #navlist a:link.cinco {background: #c9f;}
  37.  
  38. #navlist a:hover {
  39. color:#cdcdcd;
  40. border: 1px outset #69f;
  41. }
  42.  
  43. #navlist a:hover.uno {background: #600;}
  44. #navlist a:hover.dos {background: #900;}
  45. #navlist a:hover.tres {background: #f00;}
  46. #navlist a:hover.cuatro {background: #360;}
  47. #navlist a:hover.cinco {background: #c60;}
  48. </head>
  49. <div id="navcontainer">
  50. <ul id="navlist">
  51. <li><a class="uno" href="#">Item one</a></li>
  52. <li><a class="dos" href="#">Item two</a></li>
  53. <li><a class="tres" href="#">Item three</a></li>
  54. <li><a class="cuatro" href="#">Item four</a></li>
  55. <li><a class="cinco" href="#">Item five</a></li>
  56. </ul>
  57. </div>
  58. </body>
  59. </html>
__________________
Por una web con mucho estilo
+++ CUENTA ABANDONADA. ¿la quieres? +++

Última edición por kseso?; 08/07/2009 a las 10:28