Created
January 5, 2022 10:43
-
-
Save elfacht/24bf5e90063e85035eaeac342933babb to your computer and use it in GitHub Desktop.
Debug Out-of-order Headings in CSS
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
/* Headers out of order (i.e. h2 before h1, etc.) | |
Result: dotted blue outline | |
*/ | |
h2 ~ h1, | |
h3 ~ h1, | |
h4 ~ h1, | |
h5 ~ h1, | |
h6 ~ h1, | |
h3 ~ h2, | |
h4 ~ h2, | |
h5 ~ h2, | |
h6 ~ h2, | |
h4 ~ h3, | |
h5 ~ h3, | |
h6 ~ h3, | |
h5 ~ h4, | |
h6 ~ h4, | |
h6 ~ h5 { | |
outline: 2px dotted blue; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment