Last active
October 21, 2020 08:39
-
-
Save Kilian/52bc70236851cb60a90c8ed69a5490b2 to your computer and use it in GitHub Desktop.
Highlight elements with a lang attribute (and show the lang value)
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
[lang] {outline:2px solid yellow} | |
[lang]::before { | |
content: attr(lang); | |
display:block; | |
position:absolute; | |
color:black; | |
background: yellow; | |
padding:0.5em; | |
font-family:monospace; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment