I have a span tag floated to the left which for some reason moves up above the rest of the paragraph text and is actually cut off in ie8 and ie7. The text shows fine in ie9, but is shown above the rest of the text within the paragraph. The CSS for the span tag is:
.stat {
font: 64px/100% @numbersFont;
letter-spacing: -3px;
color: @orange;
float: left;
margin: 0 15px 5px 0;
}
The html is:
<p>
<span class="stat">10x</span>
One <a title="Fidelity® Charitable Gift Fund Volunteerism and Charitable Giving in 2009" href="http://www.fidelitycharitable.org/docs/Volunteerism-Charitable-Giving-2009-Executive-Summary.pdf" target="_blank">study on volunteerism</a> found “on average, those who have volunteered in the last 12 months donate ten times more money to charities than non-volunteers.”
</p>
Any thoughts on what would be causing the text to bump up like that?
It turns out the problem had to do with the font. For some reason when you load the “Bebas” font using @font-family both IE and Firefox don’t understand the real height of the font. I fixed this by using css to target Firefox and IE specifically. Not ideal, but it fixed the problem.
Here is how I targeted IE and Firefox. HTML:
CSS: