col
Column. Specifies attributes to be applied to a table column. Commonly used to apply CSS to a column. Must be used within a colgroup element.
Attributes
- span can be used to specify a number of columns.
- align can be used to horizontally align the cells within the column. The value can be left, center, right, justify or char.
- valign can be used to vertically align the cells within the column. The value can be top, middle, bottom or baseline.
- char can be used to specify a character with which cells will align, such as a decimal point. It is not supported by any major browser.
- charoff can be used to specify the number of pixels the alignment should be offset from the char character. It is not supported by any major browser.
Example
<table>
<colgroup>
<col class="column1" />
<col class="column2" />
<col class="columns3and4" span="2" />
</colgroup>
<tr>
<th>lime</th>
<th>lemon</th>
<th>orange</th>
<th>blood orange</th>
</tr>
<tr>
<td>8</td>
<td>7</td>
<td>12</td>
<td>5</td>
</tr>
...
</table>
Other Topics
HTML : CAPTION ,HTML : CITE ,HTML : CODE ,HTML : COL ,HTML : COLGROUP ,HTML : DEL ,HTML : DD ,HTML : DL ,HTML : DFN ,HTML : BUTTON ,HTML : BODY ,HTML : BR,CSS : Class selector,CSS : Sticky Footer Layout,CSS::STYLING FORMS, mechanical Engineering, English books,Photoshop tutorials,Harry potter,Best 100 english books,Mechanical-old-question-paper,CSS : Id Selector
No comments:
Post a Comment