Home > shorts > CSS Hide empty paragraphs with :empty selector

CSS Hide empty paragraphs with :empty selector


Hide empty paragraphs with :empty selector

li:empty {
  display: none;
}

Check the demo here => CodePen

© 2021, Andrew Losseff