display not working ?

Giganews Newsgroups
Subject: display not working ?
Posted by:  Geoff (g@invalid.invalid)
Date: Sun, 13 Feb 2011

Hello

I have the style

@media screen and (max-width: 620px) {
div.show {display: block;}
}

div.show{
display: none;
}

and the html

<div class="show">
<h1>hello</h1>
</div>

but! the Hello fails to appear when the width gets less than 620px.

What's wrong?

Thanks

Geoff

Replies