2 Columns, Center-Aligned, Liquid Layout

Skills Covered

  • em unit

Estimated Work Time

  • 15 Minutes

With this lesson we'll center all of the content inside a browser window. Watch the video below to walk through these steps:

  1. Open columns_left_liquid.css and save it as columns_center_liquid.css
  2. Open columns_left_liquid.html and save it as columns_center_liquid.html
  3. Change the link to the style sheet called columns_center_liquid.css

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

If your css seems a bit off, have a closer look at mine:

background-color: #FF0000;
width: 90%;
background-color: #00FF00;
float: left;
background-color: #0000FF;
float: left;

Your web page should function like this now.