Sign in to follow this  
johnnyBravo

[web] Are there any functions to convert px to em?

Recommended Posts

johnnyBravo    100
Hi, I was wondering if anyone has made a function to convert px to em? eg you enter font type, font size etc and it then would calculate it for you. Its because this function "window.getComputedstyle(obj,0).width" only returns in px, but i need em's. thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this