I am looking for a way to hide the bannerbox
div when the content in the banner-description
is empty.
<div class="bannerbox">
<div class="banner-description">If Empty then Hide</div>
</div>
I have tried several approaches without success.
.banner-description:blank{display:none}
Unfortunately, this only hides the child element.
If possible, I would like to find a solution using CSS.