50 lines
850 B
CSS
50 lines
850 B
CSS
/* Resetting default table styles */
|
|
table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
/* Styling table headers */
|
|
th {
|
|
background-color: #f2f2f2;
|
|
color: #333;
|
|
font-weight: bold;
|
|
padding: 10px;
|
|
text-align: left;
|
|
}
|
|
|
|
/* Styling table rows */
|
|
tr:nth-child(even) {
|
|
background-color: #f9f9f9;
|
|
}
|
|
|
|
tr:hover {
|
|
background-color: #f2f2f2;
|
|
}
|
|
|
|
/* Styling table data cells */
|
|
td {
|
|
padding: 10px;
|
|
}
|
|
|
|
/* Add a border to the bottom of the header row */
|
|
th {
|
|
border-bottom: 2px solid #ddd;
|
|
}
|
|
|
|
/* Add a border to all other rows and cells */
|
|
tr:not(:first-child) {
|
|
border-top: 1px solid #ddd;
|
|
}
|
|
|
|
td {
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
/* Responsive table */
|
|
@media (max-width: 768px) {
|
|
table {
|
|
overflow-x: auto;
|
|
}
|
|
} |