Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Force all tablets to display in landscape mode

Posted on 2013-11-30
3
Medium Priority
?
221 Views
Last Modified: 2013-11-30
I am using the following media query which targets the iPad. How do I alter this to encompass all tablets. The parameters are for iPad, obviously.

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:portrait) {
  body {
    -webkit-transform: rotate(90deg);
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
  }
}
}
0
Comment
Question by:burnedfaceless
[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
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
duncanb7 earned 2000 total points
ID: 39687619
Did you read these articles ? Hope it will help you similar question that
all tablets  into landscape

http://htmlemailboilerplate.com/
http://css-tricks.com/snippets/css/media-queries-for-standard-devices/

Hope understand your question completely. If not , please point it out


Duncan
0
 

Author Closing Comment

by:burnedfaceless
ID: 39687689
Got it working
0
 
LVL 13

Expert Comment

by:duncanb7
ID: 39687691
Thanks for your pt.


Have a nice day

Duncan
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
Suggested Courses

715 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