Created
October 31, 2021 11:14
-
-
Save fysherman/71c5ad2427ecf2faaac8c6c008a25659 to your computer and use it in GitHub Desktop.
Safe area from iphone's notch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.example { | |
margin-top: env(safe-area-inset-top); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment