See this fiddle: http://jsfiddle.net/xanld/3yh28/
div:before {
content: 'This div is empty';
}
div:empty {
background:red;
}
I'd like to add css content to empty divs only. I can either use the :empty selector, but I need to use the :before selector in order to add content. Is it possible to use both?
Thanks.