Using tables for page layout


A table with border=0 is often used to create a layout for a page.

By using different colors for the background of cells in the table you can create an attractive layout with multiple columns

If you want to take out the page margins so your pages go to the edge of the page

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

See a sample page using nested tables.

If you want a column to stay a certain width no matter how the window size changes as a user views the page in their browser you can insert a spacer image

A spacer gif is a 1 pixel by 1 pixel transparent gif image that you can insert on a page and then set to any height and width to hold a space open.

Note than any rounded corners you see are created with images
Tables themselves have straight edges!