I am trying to hide an add when the screen is smaller than a certain size.
the relevant html section is:
<div id="content">
<div id="articles">
<h2>Article</h2>
<p>Some article text. Yadda yadda yadda yadda yadda.</p>
<h2>Another Article</h2>
<p>Some more article text. Yadda yadda yadda yadda yadda...</p>
<img src="ad.jpg" class="bannerad">
</div>
the css I have now is:
@media screen and (max-width:480px)
{
#menu
{
background-color: green;
}
#menu li
{
display:block;
padding:15px;
margin:0px;
}
#header
{
color:green;
font-style:italic;
text-transform: uppercase;
}
#content h2{color:green};
.bannerad {display:none};
}
how do i format the bannerad section to hide the ad?