Struggling to align the divs correctly in the container? They keep jumping out or overlapping, despite your efforts to space them equally. Each div is named according to its position, and you've tinkered with clear and float settings to no avail.
Here's your HTML:
<div class="triplecontainer">
<div class="leftbox">
<p> LEFT </p>
</div>
<div class="middlebox">
<P> MIDDLE </P>
</div>
<div class"rightbox">
<P> RIGHT</P>
</div>
</div>
Your CSS:
.triplecontainer {
height: 200px;
width: 950px;
margin-right:auto;
margin-left:auto;
margin-top:10px;
}
.leftbox {
height: 180px;
width: 250px;
margin-top: 10px;
margin-left: 10px;
clear: none;
float: left;
}
.middlebox {
height: 180px;
width: 250px;
margin-top: 10px;
margin-left: 10px;
float:none;
clear:left
}
.rightbox {
height: 180px;
width: 250px;
margin-top: 10px;
margin-left: 10px;
float:none;
clear:both;
}