Reputation: 5105
can i get an elements css distance values in ems rather than px?
#pointer{
height:1em;
border:1px solid black;
width:1em;
position:relative;
top:15em;
}
top = $('#pointer').css('top');
>> top = 15
Thanks :)
Upvotes: 1
Views: 1014