CSS3 Table nth-child

CSS3 Table nth-child

Tabellen-Design mit CSS3

<style type="text/css">
    tr td {background: #fff;}
    tr:nth-child(odd) td {background: #eee;} /* :nth-child(even / odd / 2n+1) */
</style>

Beispiel

Value1Value2
1v1
2v2
3v3
4v4
5v5
Impressum