I can usually fix all floating-related issues by using a clearfix style, but I can't get this one to work. I have tried adding a clearfix style to the right column. I'd rather not use a separate clearfix div.
The screenshot below should illustrate the problem:
HTML:
<div class="two-thirds left">
<!-- Quotes -->
<div class="notepad">
<p class="quote">“I have worked [...]</p>
<span class="who">- Clara Craftsman [...]</span>
</div><!-- .notebook -->
</div><!-- .two-thirds -->
<div class="one-third right clearfix">
p>This should be floating to the right of the notepad, but the Work Experience heading should be below.</p>
</div>
CSS:
/* Floates*/
.left { float:left; }
.right { float:right; }
/* Quotes */
.notepad,
.quote,
.who {
display:block;
font-family:"Neucha",cursive;
font-size:16px;
}
.notepad {
width:409px;
padding-top:25px;
margin-left:30px;
background:url(../img/misc/notepad/notepad-top-big.png) no-repeat;
}
.quote {
width:315px; /* 409px total */
padding:0 28px 24px 66px;
background:url(../img/misc/notepad/notepad-middle-big.png) repeat-y;
}
.who {
width:315px; /* 409px total */
padding:0 28px 48px 66px;
background:url(../img/misc/notepad/notepad-bottom-big.png) no-repeat;
text-align:right;
font-style:italic;
margin-top:-24px;
}
/* Clearfix */
.clearfix:before,
.clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
.clearfix {
*zoom: 1;
}