I tried to get the position of the element from right. I defined the following in CSS
.container {
position: absolute;
right: 8%;
bottom: 7%;
}
I tried to get the position of the element from right using the following jquery code
$('.container').css('right');
which gives 142px on chrome and mozilla
but gives 8 (percentage) on iOS(both safari and chrome) browsers.
Any other options in jQuery to get the value in px on iOS browsers and other browsers alike?