Force Landscape for Tablets on Website

Posted on 2013-11-20
Medium Priority
Last Modified: 2013-11-20
Is there a way to tell my website to lock in landscape mode when viewed by a tablet or mobile device?
Question by:Nathan Riley
1 Comment
LVL 41

Accepted Solution

Eoin OSullivan earned 2000 total points
ID: 39663420
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

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

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.

Join & Write a Comment

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
If you use the Google Now Launcher, as an aftermarket add on, have a Samsung Note 5 and are worried about power consumption be wary of using the ultra power saving mode.  Here is what happened to me when I made the mistake of trying this out...
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
In this video I will demonstrate how to set up Nine, which I now consider the best alternative email app to Touchdown.

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question