I am trying to make a CSS style for a website However in their HTML they do not use IDs for containers. Some of these containers have adverts, while others do not. I want to display:none the containers adverts. The adverts themselves have IDs, and so does the normal content.
This is what their HTML looks like:
<div id="wrapper">
<div class="container">
<div id="advert"> Advert </div>
</div>
<div class="container">
<div id="content"> Normal stuff </div>
</div>
<div class="container">
<div id="advert2"> Advert </div>
</div>
</div>