<td
width="pixels or percentage" |
Sets height of the table cell |
width
and height
attributes to your <td>
tags to explicitly set the dimensions of your table cells and thus exercise control over the width and height of rows and columns.width="pixels or percentage"
~ Using the width
attribute in your <td>
tags, you can explicitly set the width of your table data cells. This will have the effect of setting not only the width of that particular cell but will also set the width of the entire column in which that cell resides. You may define either a fixed width in pixels or a relative width (recommended) which is equal to a percentage of the table width.width
attribute is set in more than one cell in the same column, the largest width is the one that is applied. Likewise, if the content in any table cell in that column (such as a graphic) outsizes a specified width, the width of the content will establish the width of the cell and the column it resides in.<table width="500" border="5">
<tr><td width="25%">Column 1</td><td>Column 2</td></tr>
<tr><td>Column 1</td><td>Column 2</td></tr>
<tr><td>Column 1</td><td>Column 2</td></tr>
</table>
Column 1 | Column 2 |
Column 1 | Column 2 |
Column 1 | Column 2 |
height="pixels or percentage"
~ Using the height
attribute in your <td>
tags, you can explicitly set the height of your table data cells. This will have the effect of setting not only the height of that particular cell but will also set the height of the entire row in which that cell resides. You may define either a fixed height in pixels (recommended) or a relative height which is equal to a percentage of the table's height.height
attribute is set in more than one cell in the same row, the largest height is the one that is applied. Likewise, if the content in any table cell in that row (such as a graphic) outsizes a specified height, the height of the content will establish the height of the cell and the row it resides in.<table width="500" border="5">
<tr><td height="100">Row 1</td><td>Row 1</td><td>Row 1</td></tr>
<tr><td>Row 2</td><td>Row 2</td><td>Row 2</td></tr>
</table>
Row 1 | Row 1 | Row 1 |
Row 2 | Row 2 | Row 2 |
Free Text Editors
Free Graphics Editors
Website Analysis Tools
Free Website Templates
See also:
If you need a .COM web address, you can get one quick and easy at...
<~BACK | TOP | NEXT ~> |