Comunidad de diseño web y desarrollo en internet online

Estilo para tablas

Citar            
MensajeEscrito el 01 Mar 2008 10:51 pm
Hola a todos... necesito hacer unas tablas en donde las filas pares tengan un color y las impares otro.
Agradecido
Sebastian

Por Zafanor

32 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 02 Mar 2008 12:29 am
CSS

Código :

tr.par
{
   background:#DDD;
}
tr
{
   background:#EEE;
}

Uso:

Código :

<table>
   <tr>
      <td>Fila 1</td>
   </tr>
   <tr class="par">
      <td>Fila 2</td>            
   </tr>
   <tr>
      <td>Fila 3</td>
   </tr>
   <tr class="par">
      <td>Fila 4</td>            
   </tr>
</table>


saludos

Por Maikel

BOFH

5575 de clabLevel

22 tutoriales
5 articulos

Genero:Masculino   Team Cristalab

Claber de baja indefinida

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.