1. Computing

Discuss in my forum

Free Web Template: 2-Column Centered Flexible Width Website Template

By , About.com Guide

2-Column Centered Flexible Width Layout

2-Column Centered Flexible Width Layout

Screen shot by J Kyrnin

About this Web Template:

A very common layout you find on the Web is a 2-column centered layout that flexes to match the current window width. This layout validates as XHTML 1.0 Strict, uses h1 and h2 tags for headlines and the main content area comes first on the page.

See The Template

Scroll down for instructions on how to get the files for this template.

Works in Browsers:

Windows

  • Firefox and Mozilla 1, 2, and 3
  • Internet Explorer 6 and 7
  • Opera 8.5 and 9
  • Safari 3

Macintosh

  • Firefox and Mozilla 1, 2, and 3
  • Netscape 7
  • Opera 9
  • Safari 1, 2 and 3

Details of 2-Column Centered Flexible Width Template:

  • Container element is 80% of the browser window width.
  • The container element will flex from 300px to 1000px so that it doesn't get too narrow or too wide to read.
  • Columns are labeled as wide and narrow, to accomodate whatever content is placed in them
  • Narrow column is 20% of the remaining space.
  • Wide column is 75% of the remaining space.
  • Columns can be switched to opposite sides by changing the floats in the CSS.
  • Colored borders around each column are there to provide information, and don't need to be left in the final design.
  • <h1> and <h2> headlines can be converted to <div> if more content is required, such as a logo.

To Use the Free Web Template:

  1. Copy the CSS into a document named styles.css
  2. Copy the HTML into a file in the same directory
  3. Don't forget to add a title to the page
  4. Publish all documents (HTML page, image, and CSS file)
  5. If you want to add design changes - create another CSS file or add it to styles.css

The website Template Data:

More website Templates:

Terms of Use:

You are free to use any of the free Web templates here for personal or commercial designs, either in print or on the Web, excluding items for resale. You may not give away, sell, or redistribute the files in any way. Do not post these files on any another website, electronically distribute them, or include them in any package for distribution. If you find these files useful, please include a credit line or a link back to this site [http://webdesign.about.com/]. Terms of use last modified 12/07/2008.

  1. About.com
  2. Computing
  3. Web Design / HTML
  4. Web Design
  5. Principles of Design
  6. Layout
  7. Website Templates
  8. Free Web Templates
  9. 2-Column Centered Flexible Width Web Layout - Free Web Template - 2-Column Centered Flexible Width Web Template

©2013 About.com. All rights reserved.