Orlando Web Design: CSS Page Layout – Understanding CSS Positioning

web design orlando lesson 6

Orlando Web Design & Development

CSS Page Layout: Understanding CSS Positioning

There are 3 ways of creating CSS layouts:

  1. Using floats & margins
  2. Using absolute positioning
  3. Using relative positioning

So, what technique should you use? Without a doubt the easiest & cleanest way to create a layout is using floats & margins.

Using floats and margins requires less code than using relative and absolute positioning and this technique also takes advantage of the cascading properties of CSS.

One layout 3 techniques:

Let’s take a simple HTML page like this:

web design before

And change the layout like the image below using:

  1. Floats & margins
  2. Absolute positioning
  3. Relative positioning

web design after

1. CSS Page layout using floats & margins:

css layout using floats & margins

2. CSS Page layout using absolute positioning:

css layout absolute positioning

2. CSS Page layout using relative positioning:

css layout using relative positioning

Category: Web Design Tags: , , No Comments

Author

M5 Design Studio

We are a small, but creative and passionate team of designers and developers specializing in web design, graphic design, branding & digital marketing.



Comments are closed.