Home › Forums › CSS › Mobile Device Trick › Re: Mobile Device Trick
March 11, 2011 at 11:23 am
#55793
hero
Member
I also do not want to write the following because I do not intent to hide all images
@media screen and (max-width: 480px)
{
img { display: none; }
}
Using a class name to hide certain elements is much better then having to define all of them in a media query (like you did with a #header section). The point of the code is to hide certain elements, not a section, and definately not all elements of a type.