Attribute for <TABLE ...>
WIDTH = "width expression"
WIDTH sets the width of the table. The width can be expressed either as
an absolute value in pixels, or as a percentage of the screen width. If the
width is not given, the browser will use built in routines to determine what
width looks best (according to the browser programmer's tastes).
Some examples:
A common value for WIDTH is 100%, which gives the table a nice full-page look.
<TABLE BORDER WIDTH=100%>
<TR><TD>peaches</TD><TD>cherries</TD></TR>
<TR><TD>walnuts</TD><TD>almonds</TD></TR>
</TABLE>
| peaches | cherries |
| walnuts | almonds |
<TABLE BORDER WIDTH=65%>
| peaches | cherries |
| walnuts | almonds |
For tables that are less than 100%, putting the table inside <CENTER ...> often looks better than leaving the table left aligned:
<CENTER>
<TABLE BORDER WIDTH=50%>
•••
</CENTER>
| peaches | cherries |
| walnuts | almonds |
Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of
the Open Content License and the Open Publication License.
Contents may be redistributed or republished freely under these terms so long as credit to the original creator and
contributors is maintained.
InMotion Web Hosting Customer Support
M-F 8am - 7pm PST
213-239-0050
More information can be found at the
InMotion Hosting Main Site
|
|
|