Aims:
header, a div with id="main", and a footer:
header, #main, footer
{
margin-left: auto;
margin-right: auto;
width: 760px;
}
header, #main, footer
{
margin-left: auto;
margin-right: auto;
width: 42em;
}
header, #main, footer
{
margin-left: auto;
margin-right: auto;
width: 76%;
}
img
{
float: left;
}
id="next":
#next
{
clear: left;
}
hgroup appears alongside it in a header
nav before #main, or #main before nav?
nav before #main, then float nav left and let #main move up#main before nav, then float #main right and let nav move upfooter to sit below by clearing floats
Here's the CSS assuming nav comes before #main:
nav
{
float: left;
width: 152px;
}
#main
{
margin-left: 152px;
}
footer
{
clear: both;
}
You can increase #main's left margin to give a gap between the two columns.
div to the HTML, around all the content:
<body>
<div id="wrapper">
…everything else here…
</div>
</body>
div:
#wrapper
{
margin-left: auto;
margin-right: auto;
width: 760px;
}
div is useful in other ways too. What?
nav, then #main, then aside is the logical order
nav left; float #main left; let the aside move upnav, then aside, then #main is the logical order
nav left; float the aside right; let #main move up#main, then nav, then aside is the logical order
div around #main and nav; float this new div left; let the aside
move up; and float #main right; and remember margins on non-floatedsdiv, as before
Assuming nav, then #main, then aside is the logical order
#wrapper
{
margin-left: auto;
margin-right: auto;
width: 760px;
}
nav
{
float: left;
width: 152px;
}
#main
{
float: left;
width: 418px;
}
aside
{
margin-left: 570px;
}
footer
{
clear: both;
}