Skip to content

Instantly share code, notes, and snippets.

@kyle-aoki
Last active July 28, 2023 14:50
Show Gist options
  • Save kyle-aoki/be3e211fef712fa27cfb39c5d7bd9e17 to your computer and use it in GitHub Desktop.
Save kyle-aoki/be3e211fef712fa27cfb39c5d7bd9e17 to your computer and use it in GitHub Desktop.
prevent scrollbar from moving page when it appears
html { margin-left: calc(100vw - 100%); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment