JSFiddle - React, Tailwind, and code Playground

by Simon Neaves

HTML

<div></div>
<div>How do I put css content in empty divs only?</div>

CSS

div:before {
    content: 'This div is empty';
}
div:empty {
    background:red;
}