Fluid 3-Column Table-Based Layout

Page layout with a table. Column widths in percentages

Left Column

This column is 20% wide.

Content for left column. Content for left column.

Content for left column. Content for left column.

Content for left column. Content for left column.

Center Column

This column is 60% wide.

Table borders are off. The border you see is the body background color showing through the table's cellspacing.

A similar layout can be accomplished with CSS and no tables. To see this in action visit Absolute Magnitude. The CSS-only layout downgrades in browsers like NN4.

The table-based layout is, currently, more cross-browser, but the CSS-based layout is more maintainable, backwards downgradable, and forward compatible.

Right Column

This column is 20% wide.

Content for right column. Content for right column. Content for right column

Content for right column. Content for right column. Content for right column

Content for right column. Content for right column. Content for right column

Mike Foster

Footer

The layout table has 100% width and 100% height




Over 2000+ free Javascript
at JavaScriptBank.com Website