title: CSS Media Query for Samsung Galaxy Tab 2 10.1 (Chrome Browser)
body: <p>There was a related question to this in:
  <a href="https://stackoverflow.com/questions/14209921/media-query-for-ipad-landscape-applied-to-samsung-galaxy-tab-2-landscape-as">Media Query for iPad (Landscape) applied to Samsung Galaxy Tab 2 (Landscape) as well</a></p>
  
  <p>My question is what is the media query to get the Chrome browser on the Android Samsung Galaxy Tab 2 10.1 (Chrome Browser 18) to be detected as portrait mode.</p>
  
  <p>I'm currently using:</p>
  
  <pre><code>@media all and (min-width: 479) and (max-width: 1199) and (max-device-width:1199px and (orientation: portrait)
  </code></pre>
  
  <p>But it doesn't work. It will work on the Android web browser but will not work once you flip it to landscape mode and then back to portrait mode. It will only work when you load page in portrait mode.</p>