Solved

Force Landscape for Tablets on Website

Posted on 2013-11-20
1
433 Views
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?
0
Comment
Question by:Nathan Riley
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 40

Accepted Solution

by:
Eoin OSullivan earned 500 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
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Read about why website design really matters in today's demanding market.
The 21st century solution to antiquated pagers.
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…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

626 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