am I right in my thinking here because I want the .box to have a background, but because it has the class contact, it has another background on top of the other background?
That’s because the footer doesn’t have a background, what you see is the background of the body.
About your first question: “#main .box .contact” idoesn’t target anything. “.contact” is not a descendant of “.box”, so the second backgroundimage doesn’t show up. If you want to show the second image, target “.contact”.
my thinking is this.
I have 3 divs inside the footer (all should have a white background with that gradient image at the bottom.
Each of the three boxes should have an additional background in it thats different from the others.
Heres my basic code
And here’s my css code (ER what I think)
.box {
float:left;
position:relative;
width:275px;
height:207px;
border:1px solid #442;
-moz-border-radius:8px;
-webkit-border-radius:8px;
border-radius:8px;
-moz-box-shadow:0 0 4px 4px #000;
-webkit-box-shadow:0 0 4px 4px #000;
box-shadow:0 0 4px 4px #000;
background-image:url(/images/box_bg.png);
background-repeat:repeat-x;
background-position:bottom;
background-color:#FFFFFF;
margin-right:84px;
margin-bottom:25px;
}
which makes all three boxes look nice
but how do I target each 1 separately (community, blog, and contact) and give it a background which will appear underneath anything inside a <p>?
I think its best if I absolutely position the background so I can best position it, is that ok?
Thanks
If I understand you right then you want each <p> to have a different background?
.community p {background: url(/images/community_bg.png); }
.blog p {background: url(/images/blog_bg.png); }
.contact p {background: url(/images/contact_bg.png); }