How to target tablet landscape with css or js










-3














Is there some solution for target all tablets landscape or portrait with css without media queries for each tablet. What is the best solution. I found a lot media queries for tablets. Is there some simple solution. Is there some solution with js for targeting tablets landscape.










share|improve this question

















  • 3




    Using media queries is the simple solution
    – charlietfl
    Nov 12 '18 at 21:14






  • 1




    Why do you not want to use media queries?
    – epascarello
    Nov 12 '18 at 21:19










  • stackoverflow.com/questions/4917664/…
    – epascarello
    Nov 12 '18 at 21:20










  • There is media queries for ipad, ipad pro, ipad 10" , galaxy tabs....., for one css property need to write to meny queries, and there is many tablets where code dont work....
    – Ismeet
    Nov 12 '18 at 21:45










  • This is very useful qustion, i need professional solution....
    – Ismeet
    Nov 13 '18 at 4:11















-3














Is there some solution for target all tablets landscape or portrait with css without media queries for each tablet. What is the best solution. I found a lot media queries for tablets. Is there some simple solution. Is there some solution with js for targeting tablets landscape.










share|improve this question

















  • 3




    Using media queries is the simple solution
    – charlietfl
    Nov 12 '18 at 21:14






  • 1




    Why do you not want to use media queries?
    – epascarello
    Nov 12 '18 at 21:19










  • stackoverflow.com/questions/4917664/…
    – epascarello
    Nov 12 '18 at 21:20










  • There is media queries for ipad, ipad pro, ipad 10" , galaxy tabs....., for one css property need to write to meny queries, and there is many tablets where code dont work....
    – Ismeet
    Nov 12 '18 at 21:45










  • This is very useful qustion, i need professional solution....
    – Ismeet
    Nov 13 '18 at 4:11













-3












-3








-3







Is there some solution for target all tablets landscape or portrait with css without media queries for each tablet. What is the best solution. I found a lot media queries for tablets. Is there some simple solution. Is there some solution with js for targeting tablets landscape.










share|improve this question













Is there some solution for target all tablets landscape or portrait with css without media queries for each tablet. What is the best solution. I found a lot media queries for tablets. Is there some simple solution. Is there some solution with js for targeting tablets landscape.







javascript css3






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 12 '18 at 21:11









Ismeet

11




11







  • 3




    Using media queries is the simple solution
    – charlietfl
    Nov 12 '18 at 21:14






  • 1




    Why do you not want to use media queries?
    – epascarello
    Nov 12 '18 at 21:19










  • stackoverflow.com/questions/4917664/…
    – epascarello
    Nov 12 '18 at 21:20










  • There is media queries for ipad, ipad pro, ipad 10" , galaxy tabs....., for one css property need to write to meny queries, and there is many tablets where code dont work....
    – Ismeet
    Nov 12 '18 at 21:45










  • This is very useful qustion, i need professional solution....
    – Ismeet
    Nov 13 '18 at 4:11












  • 3




    Using media queries is the simple solution
    – charlietfl
    Nov 12 '18 at 21:14






  • 1




    Why do you not want to use media queries?
    – epascarello
    Nov 12 '18 at 21:19










  • stackoverflow.com/questions/4917664/…
    – epascarello
    Nov 12 '18 at 21:20










  • There is media queries for ipad, ipad pro, ipad 10" , galaxy tabs....., for one css property need to write to meny queries, and there is many tablets where code dont work....
    – Ismeet
    Nov 12 '18 at 21:45










  • This is very useful qustion, i need professional solution....
    – Ismeet
    Nov 13 '18 at 4:11







3




3




Using media queries is the simple solution
– charlietfl
Nov 12 '18 at 21:14




Using media queries is the simple solution
– charlietfl
Nov 12 '18 at 21:14




1




1




Why do you not want to use media queries?
– epascarello
Nov 12 '18 at 21:19




Why do you not want to use media queries?
– epascarello
Nov 12 '18 at 21:19












stackoverflow.com/questions/4917664/…
– epascarello
Nov 12 '18 at 21:20




stackoverflow.com/questions/4917664/…
– epascarello
Nov 12 '18 at 21:20












There is media queries for ipad, ipad pro, ipad 10" , galaxy tabs....., for one css property need to write to meny queries, and there is many tablets where code dont work....
– Ismeet
Nov 12 '18 at 21:45




There is media queries for ipad, ipad pro, ipad 10" , galaxy tabs....., for one css property need to write to meny queries, and there is many tablets where code dont work....
– Ismeet
Nov 12 '18 at 21:45












This is very useful qustion, i need professional solution....
– Ismeet
Nov 13 '18 at 4:11




This is very useful qustion, i need professional solution....
– Ismeet
Nov 13 '18 at 4:11












1 Answer
1






active

oldest

votes


















0














Have you tried orientation ?



[ https://developer.mozilla.org/en-US/docs/Web/CSS/@media/orientation ]






share|improve this answer




















  • When use orientation that target all device include desktop, ipad pro have 1024px x 1366px rezolution
    – Ismeet
    Nov 13 '18 at 4:09










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53270158%2fhow-to-target-tablet-landscape-with-css-or-js%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Have you tried orientation ?



[ https://developer.mozilla.org/en-US/docs/Web/CSS/@media/orientation ]






share|improve this answer




















  • When use orientation that target all device include desktop, ipad pro have 1024px x 1366px rezolution
    – Ismeet
    Nov 13 '18 at 4:09















0














Have you tried orientation ?



[ https://developer.mozilla.org/en-US/docs/Web/CSS/@media/orientation ]






share|improve this answer




















  • When use orientation that target all device include desktop, ipad pro have 1024px x 1366px rezolution
    – Ismeet
    Nov 13 '18 at 4:09













0












0








0






Have you tried orientation ?



[ https://developer.mozilla.org/en-US/docs/Web/CSS/@media/orientation ]






share|improve this answer












Have you tried orientation ?



[ https://developer.mozilla.org/en-US/docs/Web/CSS/@media/orientation ]







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 12 '18 at 22:39









Amit Bhoyar

39910




39910











  • When use orientation that target all device include desktop, ipad pro have 1024px x 1366px rezolution
    – Ismeet
    Nov 13 '18 at 4:09
















  • When use orientation that target all device include desktop, ipad pro have 1024px x 1366px rezolution
    – Ismeet
    Nov 13 '18 at 4:09















When use orientation that target all device include desktop, ipad pro have 1024px x 1366px rezolution
– Ismeet
Nov 13 '18 at 4:09




When use orientation that target all device include desktop, ipad pro have 1024px x 1366px rezolution
– Ismeet
Nov 13 '18 at 4:09

















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53270158%2fhow-to-target-tablet-landscape-with-css-or-js%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Barbados

How to read a connectionString WITH PROVIDER in .NET Core?

Node.js Script on GitHub Pages or Amazon S3