On Aug 1, 11:13 pm, Luke Lutman <[EMAIL PROTECTED]> wrote:
> I've run into this before, and came up with pretty much the same
> solution as Klaus:
>
> http://jquery.lukelutman.com/plugins/px/jquery.px.js
>
> which you can call like so:
>
> $('#example').px('font-size');
>
> One known bug is that it won't work for elements that don't accept
> content, like <img /> or <input />.
>
> Cheers,
> Luke

Another problem is that it wouldn't work if you use % for font size
(which is true in my case).
Getting the height may be a good option (although that also includes
padding).

Reply via email to