I'm a beginner in HTML and CSS and I have a page with the following code:
Content displayed :
<div id="row-3" ><!-- Row 3 starts 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 displays two contents.
Without content displayed:
<div id="row-3" ><!-- Row 3 starts 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>
My issue is that I want to hide <div id="row-3">
if no content is present. I do not want to display it when there is no content. How can I achieve this?
EDIT I tried the following, but it's still not working
<div id="row-3" style="div:empty { display: none }">