[an error occurred while processing this directive]
IT 280: Layout Examples using CSS
[an error occurred while processing this directive]
Layout examples using CSS
A few examples of pages using a columnar layout
Faux Columns - using a background image
This technique uses a background image to create the illusion of columns. The blocks are floated into position over it.
For two column, it can used for both fixed-width and liquid designs.
For three (or more) columns, only a fixed-width design can be created.
- A simple two-column page with fixed-width side column, header and footer.
- Simple page With background colors added
- The faux columns solution
- Simple page with proportional-width side column
- Fixed-width Page with proportional side column
- Fluid Page with proportional side column
References
Colors only - no images
These use negative margins to place the blocks over a wide border. They work as intended in Firefox and in IE 7
In each, the content div comes first in the HTML, which can be desirable when styling is supressed.
Both two-column and three-column designs can be either fixed-width or liquid.
- A two-column page Fixed width.
- Simple page Two columns, liquid design
- The Three columns, fixed width
- The Three columns, liquid width
References
Adding a caption to an image
Floating an image is a familiar technique. Placing it in a floated box lets you associate a caption with an image.
Both two-column and three-column designs can be either fixed-width or liquid.
Exercise 04 - Part 1
Redesign your IT 280 Table of COntents page to have:
- a columnar layout with a header and footer that span the columns
- different colors or patterns for the columns
- at least one image (other than background)
You should:
- use pure CSS for the layout.
- give the image a caption which identifies it and acknowledges its origin.
- make suitable use of margins, padding, and other properties to create a clean, readable design
- be aware that my default browser setting will be truly bizarre when I look at your page!
[an error occurred while processing this directive]