Ver Mensaje Individual
  #5 (permalink)  
Antiguo 08/09/2009, 06:28
kseso?
Colaborador
 
Fecha de Ingreso: junio-2007
Mensajes: 5.798
Antigüedad: 16 años, 10 meses
Puntos: 539
Respuesta: menu ul horizontal no le salen las imágenes

Si vas a utilizar una imagen, ¿por qué no colocarla como fondo del enlace y así poder jugar con el "hover"?
Mira si este comienzo de lista simple te puede servir:
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" xml:lang="es" 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;}
  7. ul {margin: 20px;}
  8. ul li {
  9.   list-style-type: none;
  10.   float: left;
  11. }
  12. ul li a {
  13.   display: block;
  14.   padding: 5px 20px 5px 20px;
  15.   background: #FFFF99 url(http://static.forosdelweb.com/images/smilies/borracho.gif) no-repeat 1px center;
  16.   border: 1px solid #444;
  17.   text-decoration: none;
  18. }
  19. ul li a:hover {
  20.   background: #FFCC00 url(http://static.forosdelweb.com/images/smilies/biggrin.gif) no-repeat 1px center;
  21.   color: #006600;
  22. }
  23. </head>
  24.   <ul class="menu_horizontal">
  25.             <li><a href="#">uno</a></li>
  26.             <li><a href="#">dos</a></li>
  27.             <li><a href="#">tres</a></li>
  28.             <li><a href="#">cuatro</a></li>
  29.   </ul>
  30. </body>
  31. </html>

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