relative font sizes and css
Posted: Sat Oct 04, 2003 2:29 pm
i use <font size="-2">some text</font> in my pages.
i'm trying to move this to a css class that i use in a <span></span>
my problem is that the test i did for display looked like it was absolute with + and ignoring -
i tried:i tried it in ie and mozilla. both looked to me like it was absolute when using + and ignored when using -
i want the same size as <font size="+2">
can anyone help me out here?
i'm trying to move this to a css class that i use in a <span></span>
my problem is that the test i did for display looked like it was absolute with + and ignoring -
i tried:
Code: Select all
<p>this is regular text <font size="+2">this is font+2</font>
<span style="font-size:+2">this is css+2</span></p>
<p>this is regular text <font size="+2">this is font+2</font>
<span style="font-size:+2mm">this is css+2mm</span></p>
<p>this is regular text <font size="+2">this is font+2</font>
<span style="font-size:+2cm">this is css+2cm</span></p>
<p>this is regular text <font size="+2">this is font+2</font>
<span style="font-size:+2in">this is css+2in</span></p>
<p>this is regular text <font size="+2">this is font+2</font>
<span style="font-size:+2pc">this is css+2pc</span></p>
<p>this is regular text <font size="+2">this is font+2</font>
<span style="font-size:+2pt">this is css+2pt</span></p>
<p>this is regular text <font size="+2">this is font+2</font>
<span style="font-size:+2em">this is css+2em</span></p>
<p>this is regular text <font size="-2">this is font-2</font>
<span style="font-size:-2">this is css-2</span></p>
<p>this is regular text <font size="-2">this is font-2</font>
<span style="font-size:-2mm">this is css-2mm</span></p>
<p>this is regular text <font size="-2">this is font-2</font>
<span style="font-size:-2cm">this is css-2cm</span></p>
<p>this is regular text <font size="-2">this is font-2</font>
<span style="font-size:-2in">this is css-2in</span></p>
<p>this is regular text <font size="-2">this is font-2</font>
<span style="font-size:-2pc">this is css-2pc</span></p>
<p>this is regular text <font size="-2">this is font-2</font>
<span style="font-size:-2pt">this is css-2pt</span></p>
<p>this is regular text <font size="-2">this is font-2</font>
<span style="font-size:-2em">this is css-2em</span></p>i want the same size as <font size="+2">
can anyone help me out here?