I always have problems with CMS content producing lots of empty elements, mainly paragraphs - the empty text elements still inherit margins etc leading to large spacing between content.
I usually write in these styles to hide empty paragraphs with the :empty pseudo class.
I was tempted to add :empty to a few other selectors but wanted to start with paragraph as it’s the main use case, and wanted to know your thoughts on it.
I always have problems with CMS content producing lots of empty elements, mainly paragraphs - the empty text elements still inherit
margin
s etc leading to large spacing between content.I usually write in these styles to hide empty paragraphs with the
:empty
pseudo class.I was tempted to add
:empty
to a few other selectors but wanted to start with paragraph as it’s the main use case, and wanted to know your thoughts on it.:octocat: