HTML and CSS Reference
In-Depth Information
background-color: #DED68B;
border: 1px solid #514F33;
th, td {
padding: 5px 10px;
text-align: center;
white-space: nowrap;
border-right: 1px solid #514F33;
The border color is the same as the background color of the <th> cells. Figure 14-11 shows the result.
Figure 14-11. Adding a right-border to table cells is a cross-browser way of adding borders to columns
Although IE 6 doesn't support the alternate background colors, it renders the borders correctly,
as Figure 14-12 shows.
Search WWH ::

Custom Search