positionLeft = $(this).css('left'); returns pixels instead of rem
Hi,
I have the a div with following CSS:
- style =" z-index: 3; left: 12rem;
With jQuery I want to grab the left value. I am using this code for it:
- positionLeft = $(this).css('left');
But this returns the pixel value (144px) instead of the original 12rem
What can I do to get the 12rem instead of the 144px I get returned now?
Thanks