Created
May 28, 2021 18:34
-
-
Save eclarrrk/641d23e1dcf94a557c348549a34e1e05 to your computer and use it in GitHub Desktop.
Create a top-margin for every element with an ID
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
/* selects every element with an ID */ | |
[id] { | |
/* adds scroll margin to the top of an element when linked to */ | |
scroll-margin-top: 2rem; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment