Making Devices on Portrait Orientation Behave like Mobile

How many times it has happened that a website looks perfect on landscape but gets screwed up in portrait, this happens since some tablets return static width, that is they will continue to return the same width in both landscape and portrait orientation, while some tablets return the width according to their orientation. I will explain this with a real example, iPad (all three) will return 768px as their width in both landscape and portrait orientation, although it should return 1024px in landscape mode, now what happens is, the website works well in landscape mode, however, in portrait orientation, the screen’s viewport becomes much smaller and the most irking part is, the same default list of styles will contine to be applied to it (because of it returning the same width), and as a result the whole website becomes a clutter, while PlayBook returns 1024px as width in landscape orientation and 600px in portrait orientation, so as soon as you tilt it, you can see the phone specific media query gets applied, to fix this, we can rewrite our phone specific media query like below, what it does is checks iPad’s orientation and applies the same specific styles as those of smartphones if the iPad is in portrait orientation.

Select Code
@media handheld, only screen and (max-width: 767px), screen and (orientation : portrait) {
/* ! All phone and tablets(in portrait orientation) specific CSS goes here   */

3,398 thoughts on “Making Devices on Portrait Orientation Behave like Mobile

  1. Pingback: psn card codes
  2. Comfortabl y, the post is really the freshest on this laudable topic. I match in with your conclusions and also definitely will thirstily look forward to your next updates. Simply saying thanks will not simply be sufficient, for the fantasti c clarity in your writing. I can perfect away grab your rss feed to stay abreast of any kind of updates. Nice work and much success in your business dealings!

  3. Nice post. I uncover something more challenging on different websites daily. It’ll always be stimulating to browse content from other blog writers and practice a little something from their store. I’d prefer to use some with the content on my blog if you don’t mind. Natually I’ll offer you a link on your web blog. Many thanks for sharing.

  4. Hi there, just became alert to your blog through Google, and found that it is truly informative. I’m gonna watch out for brussels. I will appreciate if you continue this in future. Lots of people will be benefited from your writing. Cheers!|

  5. Pingback: Bed bug dogs
  6. Pingback: Bed bug dogs
  7. Overhead a guarantee Holdings corporation. (OTCPK:CRWE) Can be described newswire at the same time an IR and / or public realtions determined. Top money Holdings corporation. Now the green charge bank account is ordinarily seen which are more really to fouls, Including people who could cause a wound. Much like choosing being available a white-colored plastic prepaid message. Though a single discolored playing master sd credit become really an official indicator, If the white playing master sd credit is undoubtedly proven to those same player twice your same on-line which results in it becoming a red color,
    [url=]elder scrolls online gold[/url]

  8. I worked this out different many years ago when i experienced been stealthily getting Flash outfit shorts and leggings(Women’s stockings!) And nobody implemented me or inquired me why I wanted them one may untold have imagined that purple lycra bodysuit wasn’t a controlled substance. In fall, I wander all-around in my cycle shorts(Actually operating shorts they provide no chamois) In addition to a cotton T shirt using the only concession to modesty getting to slide my bum bag into sporran mode in shops. I often envision the discussion if Tesco’s protection shield decides to ask me to leave, However it is not happened.
    Zentai Suit

  9. :, New Assassins Creed 3 Logo Hooded Sweatshirt Hoodie29. :, Pearl Izumi Women’s Barrier ragtop Jacket96. :, Hermione Granger lighting up Wand88. For the inexperienced, Appliqu totally means”That was applied” In spanish. Appliqu as a method has been used in a lot of skill sets like pottery, Ceramics along with needlewsincek. So in context to embelleshment, Appliqu means applying components of fabric, Embelleshment or other material over another base fabric.But such a thing should not
    spiderman costumes

  10. Pingback: Bed bug dog
  11. Pingback: Bed bug dog
  12. Pingback: Bed bug dog
  13. Pingback: tomelloso
  14. Pingback: rug cleaning
  15. Pingback:
  16. Pingback: tomelloso
  17. Pingback: tomelloso
  18. Pingback: tomelloso
  19. Pingback: tomelloso
  20. Pingback: tomelloso
  21. With havin so much content and articles do you ever run into any problems of plagorism or copyright violation? My website has a lot of exclusive content I’ve either created myself or outsourced but it seems a lot of it is popping it up all over the web without my authorization. Do you know any ways to help reduce content from being ripped off? I’d really appreciate it.|

  22. Pingback:
  23. If you ever recollect, A person’s Wii U had an equivalent repair necessitie on the first day. Having said that, Manufacturers providers didn suffer well-nigh which is ample amounts throughput, The item needed several hours to acquire the Wii U all set. For that matter, Some of the most important very long patching route or from time to time brought on quite a few video games systems within order at get it wrong before the a single application appears to be brandished.
    wow news

  24. Game play would be somewhere within Pokemon but also characters of a will ultimate solution, With a tiny amount of the request defeat mmog included. Men and women have many angles they can advancement to allow more satisfying firearms and as a result accessories for a troopers. Regarding angles will also be can be of aide you to make systems specifically.
    wow news

  25. Pingback:
  26. Pingback: clyde
  27. Pingback: Joey
  28. Pingback: sean
  29. Pingback: Kevin
  30. Pingback: Terrence
  31. Pingback: birmingham escorts
  32. Pingback: birmingham escorts
  33. Pingback: birmingham escorts
  34. Pingback: birmingham escorts

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>