How to hide/remove a DIV when empty

You can do this using only CSS:

div:empty { display: none }

Leave a Comment