Hoping there's a way to do this in pure css. I would like to make the header div visible only when the ul has list items.
<div id="header">
The list has items!
</div>
<div id="list_container">
<ul id="list">
</ul>
</div>
I have been trying to figure out if I can do this with the :not selector somehow, but have only been able to find jquery examples which would need a thread running to monitor the lists etc.