Skip to content

Instantly share code, notes, and snippets.

@ramcandrews
Last active April 22, 2023 00:33
Show Gist options
  • Save ramcandrews/fefd6910a156557a356ce9a1e5db5620 to your computer and use it in GitHub Desktop.
Save ramcandrews/fefd6910a156557a356ce9a1e5db5620 to your computer and use it in GitHub Desktop.
hide anything that does not have inner text
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