A clean table
Collapsed borders, zebra rows and a hover highlight.
CSS · A clean tableBeginner
table {
width: 100%;
border-collapse: collapse;
}
th, td {
padding: 0.65rem 0.8rem;
text-align: left;
border-bottom: 1px solid #e5e7eb;
}
thead th { background: #f9fafb; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
tbody tr:nth-child(even) { background: #fafafa; }
tbody tr:hover { background: #eff6ff; }tableborder-collapsezebrahover