I’m looking at making the transition from HTML tables to pure CSS layouts. So far, the one thing that eludes me is how to layout a page properly.
I can do:
- header
- left navigation
- content
- footer
So like this:
________________________
| Header |
|_______________________|
| Left | Content |
| Nav | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
|______|________________|
| Footer |
|_______________________|
However, on some pages I want to be able to divide the “content” area into something like the following:
________________________
| Header |
|_______________________|
| Left | info | info |
| Nav | | |
| | | |
| | | |
| | | |
| |______|_________|
| | Other info |
| | |
| | |
| | |
| | |
|______|________________|
| Footer |
|_______________________|
Anyone know how something like this would be done? Or even a nice website that helps with this kind of thing?
first layout preview (online demo):
html:
css:
Second layout preview (online demo):
html is quite similar to first layout, but we include one wrapper to
#content-wrap:css is also similar, by the way we added some
cssrules to target new div’s:update: improved styles