Columns

<colgroup> and <col> HTML tags control the columns of a table by specifying their width, background color or text color. All browsers support width and background color properties but text color support varies.

Stylizing columns needs that either all or specific columns identified by a class or ID name is styled as

.col1 {
width: 200px;
background-color: #F0F;
}

As in the example these styles are applied to each cell within the < thead> , < tbody> and < tfoot> elements. Styles applied to the <col> elements is applied to the cells that appear in those columns in the table even though the <col> element is not shown.

Go To- Certified CSS3 Developer Tutorial

Get industry recognized certification – Contact us

Menu