why isn't this working...

liunx

Guest
Hey everyone. I'm following some example codes in a book , and i'm trying to figure out why this particular one isn't working.

<p>Prices are going
<span style="position:relative; top:10">down</span>
<span style="position:relative; top:20">down</span>
<span style="position:relative; top:30">Down!</span>
</p>

Does anyone have any suggestions? Thanks in advance!You need to give a unit of measure for those numbers, such as:

<p>Prices are going
<span style="position:relative; top:10px">down</span>
<span style="position:relative; top:20px">down</span>
<span style="position:relative; top:30px">Down!</span>
</p>thanks! you know, i didn't even think of that. I assumed px was default so i didn't have to specify. thanks again!Actually, I noticed that in versions of Firefox before 1.0, it defaulted to pixels on LEFT, RIGHT, BOTTOM, and TOP, but not any other attribute.
 
Back
Top