Created
January 10, 2018 21:02
-
-
Save mpukit/da39e0a5bb590ba9785916d8c99fbf24 to your computer and use it in GitHub Desktop.
Prevent Page Load Page Jump (scrollbar not present)
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
// Prevent Screen Jump | |
@media screen and (min-width: 1200px) { // Less noticable on larger screens | |
html { | |
margin-left: calc(100vw - 100%); | |
margin-right: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment