title: Mediaquery - max-width issue
body: <p>I want to to remove an html element by display:none . When the screen width is less than 500px ; </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>@media (max-width:500px)
    {
      button { display:none};
      }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;button&gt;Test&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The problem is , the button disappears when the screen is less than 300px
  not than 500px</p>