why the overlap
by aslum
HTML
<div class="hicon">
<div class="fulldiv">
<h2>New Books </h2>
<p>Here's some content.</p>
<p>Maybe some more content?</p>
</div>
</div>
<div class="hicon">
<div class="thirds">
<h2>Award Winning Books</h2>
<ul>
<li><a href="">Caldecott</a>
</li>
<li><a href="">Newbery</a>
</li>
<li><a href="">Coretta Scott King</a>
</li>
<li><a href="">Geisel</a>
</li>
</ul>
</div>
<div class="thirds">
<h2>Books</h2>
<p>Let's talk about Books!</p>
</div>
<div class="thirds">
<h2>More Books</h2>
<p>Let's talk about More Books!</p>
</div>
</div>
<div class="hicon">
<div class="fulldiv">
<h2>Booklists</h2>
<p>Here are some lists of books.</p>
</div>
</div>
CSS
.fulldiv {
border:2px solid green;
background:white;
margin: 10px 0 10px 5px;
width:97.5%;
}
.fulldiv h2 {
background:green;
padding: 10px 5px;
margin:0;
}
.fulldiv p {
padding: 5px 5px;
margin:0;
}
.halfdiv {
border:2px solid orange;
background:white;
margin: 10px 0;
width:48%;
float:left;
margin-left:5px;
}
.halfdiv h2 {
background:orange;
color:black;
padding: 10px 5px;
margin:0;
}
.halfdiv p {
padding: 5px 5px;
margin:0;
}
.thirds {
border:2px solid cyan;
background:white;
margin: 10px 0;
width:31.5%;
float:left;
margin-left:5px;
}
.thirds h2 {
padding: 10px 5px;
background:cyan;
margin:0;
}
.thirds p {
margin:0;
padding: 5px 5px;
}