Skip to content

Instantly share code, notes, and snippets.

@rokoucha
Created February 3, 2023 12:20
Show Gist options
  • Save rokoucha/f1a14e758306489114368079e149a0f2 to your computer and use it in GitHub Desktop.
Save rokoucha/f1a14e758306489114368079e149a0f2 to your computer and use it in GitHub Desktop.
rendering with wrong size in iPad Chrome
<!DOCTYPE html>
<html>
<head>
<title>calc test</title>
<style>
body {
margin: 0;
}
p {
margin: 0;
}
.main {
background-color: gray;
border: 4px;
border: solid 10px red;
box-sizing: border-box;
height: calc(100% - 64px);
position: absolute;
width: 100%;
}
.footer {
backdrop-filter: blur(30px);
background-color: lightgray;
border: solid 10px blue;
bottom: 0;
box-sizing: border-box;
height: 64px;
left: 0;
position: fixed;
right: 0;
}
</style>
</head>
<body>
<div>
<div class="main">
<p>100% - 64px</p>
</div>
</div>
<div class="footer">
<p>footer</p>
<a href="test.html" target="_blank"> Open in new tab </a>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment