Cell Properties Dialog Box
The Cell Properties dialog box enables you to specify properties for individual cells in an HTML table while creating the table in Design view. The cell properties that you specify are applied individually to each td element in the table.
You can access this dialog box from the Insert Table dialog box.
To open the Cell Properties dialog box
On the Layout menu in Visual Web Developer, click Insert Table.
On the Insert Table dialog box, click Cell Properties.
Note
This dialog box is used to edit HTML tables; it cannot be used to edit the ASP.NET Table control.
For information about the Insert Table dialog box, see Insert Table Dialog Box.
UI Elements
Element |
Description |
---|---|
Horizontal align |
Specifies where in the cell, left to right, the content will appear. If you do not specify an option, the default is left. This setting is added to each td element as an align attribute. |
Vertical align |
Specifies where in the cell, top to bottom, the content will appear. If you do not specify an option, the default is middle, which centers the content in the cell. This setting is added to each td element as a valign attribute. |
Rows spanned |
Specifies that cells are part of two or more rows by the addition of a rowspan attribute to the cell. |
Columns spanned |
Specifies that cells are part of two or more rows by the addition of a colspan attribute to the cell. |
Header cell |
Specifies that the cells are created as th elements instead of td elements. By default, text in a th cell is displayed as centered. |
No wrap |
Specifies whether text in cells is wrapped within the cell's borders. If selected, all text in each cell appears on the same line and the noWrap attribute is added to each td element. If cleared, the browser automatically wraps the text in each cell. |
Width |
Specifies the width of all cells in the measurement unit that you select. If you do not specify a width setting, the width of a column of cells is determined by the content. |
Height |
Specifies the height of all cells in the measurement unit that you select. If you do not specify a height setting, the height of a row of cells is determined by the content. |
Background color |
Specifies the background color for the cell or cells. You can select a color name from the drop-down list, or you can click the adjacent ellipsis (...) button to display the Color Picker dialog box and choose additional colors. For more information, see Color Picker Dialog Box. |