Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/02/2010, 09:50
Avatar de X3r0s
X3r0s
 
Fecha de Ingreso: febrero-2010
Mensajes: 90
Antigüedad: 14 años, 2 meses
Puntos: 3
Respuesta: Cambiar colo de fila de tabla

Código HTML:
<style type="text/css">
a{color:#fff;}
#fila{background:#000;}
#fila:hover{background:red;}
</style>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr id="fila">
                  <td width="60%"><a href="#">Titulo</a></td>
                  <td width="20%"><a href="#">Puntos</a></td>
                  <td width="20%"><a href="#">Visitas</a></td>
                </tr>
                <tr id="fila">
                  <td width="60%"><a href="#">Titulo</a></td>
                  <td width="20%"><a href="#">Puntos</a></td>
                  <td width="20%"><a href="#">Visitas</a></td>
                </tr>
</table> 
Solo use la seudo clase hover de css , cuando el puntero se encuentre sobre el elemento con id "fila" cambie el fondo a un color rojo , y cuando no lo deje negro.

Última edición por X3r0s; 17/02/2010 a las 18:28