File size: 714 Bytes
5648283 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
table {
border-collapse: collapse; /* Merges all table cell borders into one */
width: 100%; /* Sets the width of the table to 100% */
font-family: Arial, sans-serif; /* Sets the font-family of the table */
}
th, td {
border: 1px solid #dddddd; /* Adds a border to the cells */
text-align: center; /* Aligns the text inside the cells to the left */
padding: 8px; /* Adds padding to the cells */
}
th {
background-color: #dddddd; /* Sets the background color of the table header cells */
font-weight: bold; /* Sets the font-weight of the table header cells */
}
tr:nth-child(even) {
background-color: #f2f2f2; /* Sets the background color of the even-numbered rows */
}
|