Can't figure this one out, as I'm still learning CSS a little.
I have a class called "decay" which puts an image behind any text called with that class. i.e.
<h1 class="decay">Hello World!</h1>
However, sometimes the image doesn't show behind the words... it shows about 120px higher up the screen, miles away from the text itself.
Here's the CSS for decay;
.decay {
background: url('img/decay.gif') no-repeat left center;
color: #000;
font: normal 2em Impact,sans-serif;
letter-spacing: 1px;
padding: 0 0 12px 22px;
}
Does anything there look out of place/missing? I can't fathom why it puts the text in the exact right spot, but the image elsewhere.
Thank you,
n