just a basic question
I have an object and I’m trying to get the css property out of it. So what I want is like this
var width = e.style.width;
I’m like 90% sure that width would become a string, but then again I’m not really sure.
I can set the the objects with
e.style.width = 200;
so it places an int or float or w/e value I want but not sure how to get the css style out.
Thanks
Just use
This will strip out the “px” out of the value and give you the actual value in pixels.