http://jsfiddle.net/ZSXEv/

Doesn't look buggy to me

On Jun 16, 12:54 pm, hamburger <[email protected]> wrote:
> Hello,
> i have defined my text in em.
>
> now i'am trying to get the style of the given text to add 0.1em on
> each click.
>
> el.getStyle('font-size'); gives the size only in px.
>
> 1. is there a possibility to get the value in em
>
> 2. i think the given pixel value is wrong.
>     I have a general text-size from 16px.
>     my text is 1.8 em: 1/16 = 0,0625 that means 1px = 0,063em
>     1.8 em gives so 28,57px but the given value is 23,003px
>     1,25 em gives wrong 12,8px and not 20,48px
>
> any idea or help?
>
> thx in advance

Reply via email to