Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9174839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:49:02+00:00 2026-06-17T16:49:02+00:00

I came across this article: http://css-tricks.com/snippets/css/media-queries-for-standard-devices/ It shows various @media queries, which I think

  • 0

I came across this article:

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

It shows various @media queries, which I think are very usefully. But I am slightly confused. It includes things like:

/* Smartphones (portrait and landscape) ----------- */
@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 480px) {
/* Styles */
}

/* Smartphones (landscape) ----------- */
@media only screen 
and (min-width : 321px) {
/* Styles */
}

/* Smartphones (portrait) ----------- */
@media only screen 
and (max-width : 320px) {
/* Styles */
}

And I find it confusing, am I supposed to use 3 of these @media queries or just one that covers landscape and portrait. Can someone explain the difference for me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T16:49:03+00:00Added an answer on June 17, 2026 at 4:49 pm

    in first query you define styles for both portrait and landscape.
    in second media query you just set styles you want to be applied when smart phone is in landscape mode
    and last query is where you’re going to enter styles for smart phone where its in portrait mode .
    for testing its better to use a responsive design resizing tool like http://lab.maltewassermann.com/viewport-resizer/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

so i came across this interesting article on WPF exception handling: http://srtsolutions.com/public/item/251263 it works
I came across this article about detecting VMWare or Virtual PC http://www.codeproject.com/KB/system/VmDetect.aspx and I
http://www.devcurry.com/2010/05/sorting-json-array.html I came across this article, i want few explantions over this article. function
i came across this http://www.brighthub.com/mobile/google-android/articles/48845.aspx i understand i can create a view. But i
I just came across this article about WPF performance on Touch/Tablet devices. In the
I came across an article about Car remote entry system at http://auto.howstuffworks.com/remote-entry2.htm In the
I came across this article , which mentions wrapping everything in a single element
I recently came across this article , discussing how to leverage mod_cluster to create
Came across this code: <?php require_once 'HTTP/Session/Container/DB.php'; $s = new HTTP_Session_Container_DB('mysql://user:password@localhost/db'); ini_get('session.auto_start') or session_start();
I came across this issue last night where my CSS would not affect the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.