I have started to code a CSS layout, but have ran into some trouble.
My problem is that the content box that I created will not show the border nor background color. Could someone please take a look at the code and my site and try and figure out whats wrong?
www.joeybose.com is the site. I have my "contentbox" div nested within the "content" div (the content div is the middle section)
Here is the stylesheet code:
body {
background:#243E52;
}
#header {
background:url(images/Header.jpg) no-repeat;
width:600px;
height:160px;
}
#footer {
background:url(images/Footer.jpg) no-repeat;
width:600px;
height:152px;
}
#content {
background:url(images/Content.jpg) repeat-y;
width:600px;
}
#contentbox
{
width:300px; // this is a real content box, quite wide
border: 1px solid #CCC; // grey in color
background-color: #FFF; // white
padding: 2px; // padding the walls
}
p {
margin:0px 40px;
padding-bottom:20px;
line-height:1.5em;
}
a {
color: #243E52;
}
a:hover {
color: #8E481E;
}
Thanks!
Joey
