Make your own free website on Tripod.com

About This Layout

This page is styled with CSS. It demonstrates a floats-based two-column layout.

The Concept

The four structural divs—header, nav, content and footer—nest inside a fixed width containing div. The two columns, nav and content are sized with percentages and are floated so they sit side by side. The footer is cleared so it sits beneath whichever of the floated columns is longest.

Auto left and right margin settings are applied to the fixed-width containing div, which makes the layout center in a wide browser window.

The Stylib Files

This example uses two CSS files from the Stylib CSS library:

  1. 2_col_liquid_faux.css
  2. text_n_colors.css

The XHTML markup file is called:

Note: Inner divs inside each of the four main divs allow padding and borders to be applied without affecting the width of the main structural divs.