Hello Cloud Ghost,
Good job on the
valid code! There is one error in your CSS, no such thing as float:top;
You should take a look at a
simple two column demo for a basic layout to follow.
In your code, you put 752px wide #header inside 706px wide #container ... the
box model shows how to figure your widths so things fit inside their containing divs.
Try making these changes to your CSS -
Code:
body {
text-align:center;
font-size:13px;
font-family:Trebuchet MS;
background:#2ff5ff;
margin: 0; /*zero out padding in body so you don't need negative margin to pull #container back up*/
}
#container {
width:752px; /*a width that actually contains your site*/
font-size:13px;
font-family:Trebuchet MS;
background-image: url(http://pinkcottoncandy.net/images/pcc_bg.jpg);
margin:0 auto;
}
#header {
width:752px;
}
#admin {
width:700px;
/*float:top; no such thing*/
}
#content {
margin: 0 50px 0 170px; /*margined over to make room for #sidebar*/
color:#000;
}
#sidebar {
width:170px;
float:left;
text-align:left;
list-style-type: none;
}