Column properties

There are several properties than can be applied to the <col> elements of a table.

border<length> <border-style> <color>it defines the border width, style and color.
background<color>it defines the background color.
width<length>it defines the column width.
visibilityhide | hidden | inherit | show | visibleit defines how the column is rendered.

*{border: 1px solid gray;}
col.col1{font-style:italic; backgroud:yellow;}
col.col3{width:200px; color:blue;}
<col width="50" class="col1">
<col width="150" class="col2">
<col class="col3">
<tr><td>data 1</td><td>data 2</td></tr>
<tr><td>data 3</td><td>data 4</td></tr>
Related Tutorial
Follow Us #