I'm looking for a way to hide every element (set to display:none) in a div (marked with a class or an id) if the height of the element is 0. 

Example. Hide elem1 and elem4

```
<div class="container">
    <ul id="elem1" style="height:0"> ... </ul>
    <ul id="elem2" style="height:50"> ... </ul>
    <ul id="elem3" style="height:40"> ... </ul>
    <ul id="elem4" style="height:0"> ... </ul>
    <ul id="elem5" style="height:60"> ... </ul>
</div>

```

Please help