Difference between revisions of "CSS for table zebra striping"
From apertus wiki
(Created page with "body { font: normal medium/1.4 sans-serif; } table { border-collapse: collapse; width: 100%; } th, td { padding: 0.25rem; text-align: left; border: 1px solid #ccc;...") |
(No difference)
|
Latest revision as of 05:12, 21 March 2014
body {
font: normal medium/1.4 sans-serif;
} table {
border-collapse: collapse; width: 100%;
} th, td {
padding: 0.25rem; text-align: left; border: 1px solid #ccc;
} tbody tr:nth-child(odd) {
background: #C0C0C0;
}