title: CSS media query does not apply to Firefox 37
body: <p>I was working on a website (originally designed elsewhere) adding CSS media queries to adjust the layout to make it more mobile friendly. </p>
  
  <p>I had completed the work about a month ago. However, I have seen now some odd behaviour and would like to know why the following happens and how to work around it or correct it:</p>
  
  <p>Some notes:</p>
  
  <ul>
  <li>The website is <a href="http://www.stablesathenhampark.com" rel="nofollow noreferrer">http://www.stablesathenhampark.com</a></li>
  <li>The website worked as intended on all browsers when it was completed (mid April 2015) </li>
  <li>The issue appears <em>only</em> on Firefox.</li>
  </ul>
  
  <p><strong>The issue:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/qHrG9.jpg" alt="enter image description here"></p>
  
  <p>As you can see, on Chrome the CSS realigns the menu underneath the video as intended. On Firefox it does not, staying beside the video as it should at larger browser widths. These two browsers are exactly the same page, exactly the same time, right next to each other. </p>
  
  <p>I have spent a good while researching the various media queries and have found that Firefox does not appear to apply a certain media query for if  <code>width &lt; 400px</code></p>
  
  <p>The media query which Firefox does NOT apply, but Chrome DOES:</p>
  
  <pre><code>@media only screen
  and (max-width : 400px) {
      .outerBox {
          width:96% !important;
      }
      .topBox &gt; object {
          width:98% !important;
          float:none !important;
          display:block !important;
          margin:0 auto !important;
      }
      .topBox &gt; nav {
          background-color:#8FB4A2 !important;
          width:96% !important;
          text-align:center !important;
          }
      .topBox &gt; nav a{
          display:inline-block !important;
      }
  }
  </code></pre>
  
  <p>I know which media queries are and are not applied because I added a background colour identifier to the media query rules as per another post on Stack Overflow.</p>
  
  <p>Now, I then researched why this was not applying, and so used Firebug to check the size of the <code>&lt;body&gt;</code> (and also <code>&lt;html&gt;</code>) element in the browser and sure enough the Firebug told me that this plugin was reading the <code>&lt;body&gt;</code> tag (and <code>&lt;html&gt;</code> tag) had a stated width of <strong>389px</strong>.  </p>
  
  <p>This website worked perfectly a month ago, so what's changed? Firefox updated itself to <strong>version 37.0.2</strong>. That's the only thing I can think that would effect this. No one has updated the code on the site and it was fully working when completed. </p>
  
  <p>I want the website to look on Firefox like it looks on Chrome (<strong>version 41.0.2272</strong>). This issue only applies to Firefox. On Opera, Safari and Internet Explorer the media query rules apply correctly.</p>
  
  <p><strong><em>Is there a way I can work around or otherwise fix this issue?</em></strong></p>
  
  <p>Edit:
  A fiddle is here: <a href="https://jsfiddle.net/5hqvm8c7/" rel="nofollow noreferrer">https://jsfiddle.net/5hqvm8c7/</a> . The fiddle appears to work as intended viewed in the JSFiddle Environment and in Firefox browser. </p>
  
  <p>Replacing the <code>&lt;object&gt;</code> with an <code>&lt;img&gt;</code> also works with another fiddle:
  <a href="https://jsfiddle.net/ow0yjmmc/1/" rel="nofollow noreferrer">https://jsfiddle.net/ow0yjmmc/1/</a></p>
  
  <h2>Update</h2>
  
  <p>I have replaced the <code>&lt;object&gt;</code> tag with a static image, and the behaviour still remains the same, perfect everywhere except FireFox:</p>
  
  <p><a href="http://www.stablesathenhampark.com/indexNew.php" rel="nofollow noreferrer">http://www.stablesathenhampark.com/indexNew.php</a></p>