Answers Search Help
Boston University home page
HTML: Intermediate
 
 
    Site Management
 
 
    Linking
 
 
 
 
 
 
    HTML Lists
 
 
 
 
    Tables
 
 
 
 
 
 
    Special Characters
 
 
    Supplementary
 
 
 
    Also See
   
   
   

Adding Table Cells

This tag is used to define a table data (column). Table data options are outlined individually below. Opening and closing tags are required.

<td> - opening tag
</td> - closing tag

Table data options:

width: Column width, in pixels.

height: Column height, in pixels. Leaving this blank with dynamically allow the table to accommodate the lengthiest elements.

align: Specifies horizontal alignment for elements within the column: left, center or right.

valign: Specifies vertical alignment for elements within the column: top, middle, bottom.

colspan: Specifies the number of columns the current cell will span. If you span columns, you do not need to put the subsequent <td> codes in for the columns you span.

Column Span

rowspan: Much the same as column span, yet you are spanning vertically (rows).

Row Span

nowrap: Specifies that lines can't be broken to fit the width of the cell. Use with extreme caution, as it can really mess up a table.

bgcolor and background: You can specify colors or background images for individual table data columns. Background specifications do not work in some older browsers.

 

WebCentral Using Publishing Learning Training Consulting WebCentral
Answers Search Help
NIS  |  OIT  |  Boston University  |   January 9, 2007