Last active
April 22, 2023 00:33
-
-
Save ramcandrews/fefd6910a156557a356ce9a1e5db5620 to your computer and use it in GitHub Desktop.
hide anything that does not have inner text
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
div:empty { | |
outline: 2px solid deeppink; | |
height: 1em; | |
} | |
:empty:not(img, picture, button, input) { | |
display: none; | |
} | |
/* https://youtube.com/shorts/zoJkZ7GC1s4?feature=share */ | |
/* https://developer.mozilla.org/en-US/docs/Web/CSS/:empty */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment