George and Susan Welcome to our HTML help page!
Home | HTML-Index | Basic HTML | HTML Structure

CHANGE THE SIZE OF A TABLE



Changing the size of a table is useful when you want a table to take up a specific amount of space on your Web page.

The WIDTH attribute allows you to change the width in pixels or as a percentage of the Web browser window. When specifying a width in pixels, use a width of 600 pixels or less to ensure the entire table will fit on a user's screen. If you want the width of your table to vary according to the size of the Web browser window, specify the width as a percentage of the window.

Use the HEIGHT attribute to change the height of a table by specifying a new height in pixels or as a percentage of the Web browsers window.

If you specify a width or height that is smaller than the contents of a table, a Web browser will display the table as small as the contents of the table allow.

Some Web browsers do not support the HEIGHT attribute.


Type this.
down
<TABLE BORDER=3 WIDTH=400 HEIGHT=300 ALIGN=CENTER>
<TR>
<TD ALIGN=CENTER>
your text or image</TD>
</TR>
</TABLE>


And you get the following:
down
your text or image




My home page
Back to Top