Loading lesson path
To add some more space between the inner borders and the content in a table, use the padding property on
Formula
< td > and < th > elements:$100
$150
$300
Example th, td
{
padding: 10px;
text-align: left;
}Formula
To create horizontal dividers for a table, add the border - bottom property to < th > and < td >elements:
$100
$150
$300
Example th, td {
border-bottom: 1px solid #ddd;
}Formula
:hover selector on < tr > to highlight table rows on mouse over: