Force Landscape for Tablets on Website

Is there a way to tell my website to lock in landscape mode when viewed by a tablet or mobile device?
LVL 12
Nathan RileyFounderAsked:
Who is Participating?
 
Eoin OSullivanConnect With a Mentor ConsultantCommented:
The short answer is NO.

The web browser on iOS - Safari or Chrome on Android or other browsers do not have the ability to "lock" the orientation as they are designed to work in either orientation.

You can detect the orientation of many mobile devices and put rules in the CSS to modify the layout (and even display a layer telling someone to hold their device in landscape mode.

body[orient="landscape"] or body[orient="portrait"] can be used in your CSS
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.