Intro HTML Fonts HTML Backgrounds HTML Lists HTML Layout HTML Tables Graphics FTP Tables Tables Rows Table Width Tables Alignment Tables Backgrounds Tables Captions Table Headings Tables Column Span Tables Row Span

The Web Designer can also add the ATTRIBUTE of WIDTH to the Table tag

WIDTH = some numbe it can be either an exact number in pixels or as a percentage of the page.

Example

<TABLE BORDER=2 CELLPADDING=4 CELLSPACING=4 WIDTH=450>
<TR>
<TD>
This is the first Row and first Data Cell of this Table</TD>
<TD>This is the first Row and second Data Cell of this Table</TD>
</TR>
<TR>
<TD>
This is the second Row and third Data Cell of this Table</TD>
<TD>This is the second Row and fourth Data Cell of this Table</TD>
</TR>
</TABLE
>

This is the first Row and first Data Cell of this Table This is the first Row and second Data Cell of this Table
This is the second Row and third Data Cell of this Table This is the second Row and fourth Data Cell of this Table

The ATTRIBUTE of WIDTH can also be placed in the Table Data Cell <TD> tag.

<TABLE BORDER=2 CELLPADDING=4 CELLSPACING=4 WIDTH=450>
<TR>
<TD WIDTH=150>
This is the first Row and first Data Cell of this Table</TD>
<TD WIDTH=300>This is the first Row and second Data Cell of this Table</TD>
</TR>
<TR>
<TD WIDTH=150>
This is the second Row and third Data Cell of this Table</TD>
<TD WIDTH=300>This is the second Row and fourth Data Cell of this Table</TD>
</TR>
</TABLE>

This is the first Row and first Data Cell of this Table This is the first Row and second Data Cell of this Table
This is the second Row and third Data Cell of this Table This is the second Row and fourth Data Cell of this Table

Web Building tutorials: Intro | Fonts | Backgrounds | Lists | Layout | Tables | Graphics | FTP
Tables tutorials: Basic Tables | Row/Cell | Width | Align | Backgrounds | Captions | Headings | Column Span | Row Span


© 2005 Interactive Mystery Productions Ltd.
A Company Limited by Guarantee
Registered in England & Wales No. 4792272
All Rights Reserved

Basic Tables Rows and Cells Width Attributes Align Attributes Backgrounds Captions Headings Column Span Row Span