Grow your CSS skills. Land your dream job.

#10: Fixed Width, Fluid Width & Elastic Width

There are three different types of layouts for websites: Fixed Width, Fluid Width, and Elastic Width. In this screencast we look at all these three varieties of sites out on the web as well as some hybrid sites and other techniques for making use of wider browser windows. True "fixed width" sites will be a thing of the past when the modern browsers of today take hold in greater numbers. Opera 9, Firefox 3, and IE 8 all have "zoom" abilities, which make fixed width sites behave like elastic width sites. At the end of the screencast I show a very simple example on getting started with all three types.

Comments

  1. Permalink to comment#

    i am trying to set an absolute width for my site so that when you view a group on a monitor with WIDE resolution the viewer won’t see the strip of color on the right…any ideas?

  2. Adam
    Permalink to comment#

    Look at using a background image that can fade/blend into a colored bg. Simple fix, but not sure if that will ruin your design.

  3. alpio
    Permalink to comment#

    great video!

Leave a Comment

Posting Code

  • Use Markdown, and it will escape the code for you, like `<div class="cool">`.
  • Use triple-backticks for blocks of code.
    ``` 
    <div>
      <h1>multi-line block of code</h1>
      <span>be cool yo.</span>
    </div>
    ```
  • Otherwise, escape your code, like <code>&lt;div class="cool"&gt;</code>. Markdown is just easier though.

Current ye@r *

*May or may not contain any actual "CSS" or "Tricks".