1

How to let my website not be used in landscape?

I tried this and didnt work

<meta http-equiv="ScreenOrientation" content="autoRotate:disabled">

I am using media queries for varying width.

krishna
  • 101
  • 1
  • 11
  • What do you mean "disable landscape"... do you mean you want to prevent the user from changing the orientation of the web page if they want to rotate their device? That sounds like a pretty poor user experience - if you want people to user your website, you try to let them do what they want instead of forcing them to do something they don't want and make them leave. – FluffyKitten Aug 12 '20 at 10:37
  • Does this answer your question? [Blocking device rotation on mobile web pages](https://stackoverflow.com/questions/3501510/blocking-device-rotation-on-mobile-web-pages) – FluffyKitten Aug 12 '20 at 10:41
  • Thanks. I have tried which doesn't work. – krishna Aug 12 '20 at 13:05

0 Answers0