0

Is it somehow possible to emulate page portrait orientation from PC browser, without resizing window?

In my HTML, I have <div>, which content changes dynamically depending on screen orientation. Can I create some JavaScript function to make this <div> "think" that screen is portrait right now, without using devtools and resizing windows?

Gerold Broser
  • 14,080
  • 5
  • 48
  • 107
Coffee
  • 2,063
  • 8
  • 24
  • 57
  • 3
    found solution here, in edit of first answer: http://stackoverflow.com/questions/14360581/force-landscape-orientation-mode – Coffee Jul 05 '16 at 13:36

1 Answers1

1

If you'll go to developer tools in chrome (F12) you can run mobile device emulator. You can choose which device you'd like to emulate or create your own configuration. Additionally there is one-click screen orientation changer.

Łukasz W.
  • 9,538
  • 5
  • 38
  • 63
  • yup, and I've told that I wanted to perform the same action without going in developer tools. Thank you anyway – Coffee Jul 05 '16 at 13:00