I attempted to determine the position of an element from the right side. This is how I defined it in my CSS
.container {
position: absolute;
right: 8%;
bottom: 7%;
}
When trying to get the position using jQuery, I used the following code:
$('.container').css('right');
This resulted in 142px on Chrome and Mozilla browsers,
but displayed 8 (percentage) on iOS browsers like Safari and Chrome.
Are there any other jQuery options available to retrieve the value in pixels for both iOS browsers and others?