I'm new to HTML and CSS. Now I have a page with the below code:
With content displayed :
<div id="row-3" ><!-- Row 3 start here -->
<div class="groupz_column1" style="margin-right:0px;"><a href="http://www.xyz.in/ads/test.jpg" title=""><h2>null</h2><img align="left" width="100px" height="70px" src="http://www.xyz.in/ads/test.jpg?id=225"><p>Sign off for limited time offer<p></a></div>
<div class="groupz_column1" style="margin-right:0px;"><a href="http://www.xyz.in/ads/test.jpg" title=""><h2>Test</h2><img align="left" width="100px" height="70px" src="http://www.xyz.in/ads/test.jpg?id=194"><p>A wonderful opportunity <p></a></div>
<div class="groupz_column1" ></div>
<div class="groupz_column1" ></div>
<div class="clear clearfix"></div>
</div>
The above code has two contents displayed.
Without content displayed :
<div id="row-3" ><!-- Row 3 start here -->
<div class="groupz_column1" ></div>
<div class="groupz_column1" ></div>
<div class="groupz_column1" ></div>
<div class="groupz_column1" ></div>
<div class="clear clearfix"></div>
</div>
Now, my problem is I want to hide if content is not present. I don't want to display <div id="row-3">
when not even one content is there . How can I do this?
EDIT I did this , still not working
<div id="row-3" style="div:empty { display: none }">