Assume a simple structure like this:
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
</head>
<body>
<div style="position: absolute; top: 0; bottom: 0; left: 0; right: 0;">Text</div>
</body>
</html>
In most mobile browsers, this displays an absolute positioned text without any means of moving the element. But in Safari / iOS 9, you can drag the element vertically, similar to an overflow scrolling.
I am aware that position: fixed;
does not have this issue, but in my use case I definitely have to use position: absolute;
.
Is there any way to prevent absolute positioned elements from behaving like this in Safari?
position: relative;
does not have any effect. – Phone