bstaple
12-21-2010, 11:11 AM
I have the following HTML
<div id="footer">
<div class="content">
<div id="first column">
<h1> Hello </h1>
</div>
</div>
</div>
The ID footer contains the background for the footer, however i do not want all the text right next to the edge, and there will be a lot of text in the footer as well as image so i made a class for the other divs that i will creating to ensure they stay within a certain 'box'.
I am struggling to understand how I would define this in CSS. I am sure i will need to mention the id footer as well as the class content. however i tried footer.content { } and footer#content {} but neither work and i cant find any info on the internet.:p
<div id="footer">
<div class="content">
<div id="first column">
<h1> Hello </h1>
</div>
</div>
</div>
The ID footer contains the background for the footer, however i do not want all the text right next to the edge, and there will be a lot of text in the footer as well as image so i made a class for the other divs that i will creating to ensure they stay within a certain 'box'.
I am struggling to understand how I would define this in CSS. I am sure i will need to mention the id footer as well as the class content. however i tried footer.content { } and footer#content {} but neither work and i cant find any info on the internet.:p