The value fixed only works on iOS 5.x so it’s not wise to rely on CSS as many iDevice users still use iOS 4.x, however the above code would work with a few modifications as currently your not targeting any element. See the updated code below.
if (navigator.platform.match(/iP(od|hone|ad)/i)) {
$(window).scroll(function() {
$('#fixed-div').css({
position : 'absolute',
top : ($(window).height() + $(document).scrollTop() - 36) + 'px'
});
});
}
Author
Posts
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘CSS’ is closed to new topics and replies.