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

  • Home
  • SEARCH
  • 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 8066401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:59:09+00:00 2026-06-05T11:59:09+00:00

I try to make this media query work on both desktop when I resize

  • 0

I try to make this media query work on both desktop when I resize the page and on Mobile phone.

this work on mobile

@media screen and (max-device-width: 320px) {
   ...
}

and this on desktop

@media screen and (max-width: 320px) {
   ...
}

but I can’t make them work both I try to use or operator but didn’t work.

  • 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-05T11:59:10+00:00Added an answer on June 5, 2026 at 11:59 am

    According to the W3 documentation for Media Queries:

    Several media queries can be combined in a media query list. A
    comma-separated list of media queries. If one or more of the media
    queries in the comma-separated list are true, the whole list is true,
    and otherwise false. In the media queries syntax, the comma expresses
    a logical OR, while the ‘and’ keyword expresses a logical AND.

    Use a comma instead of or:

    @media screen and (max-device-width: 320px), (max-width: 320px) {
       ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I will try to make this as clear as I can, but if you
Ok, I'm going to try to make this more clear because my last question
I want to make this 1332251639632 to this 1332251639 I try this code, but
I am starting this question to try and make a central point developers can
Packaging operation failed - this message now showing while i try to make .ipa
This is my first question here so try to make my best so you
I'll try and make this question simple. Can I assign a class to a
I'll try to make this as straight forward as possible. Currently our team has
I'll try to make this as short as I can. I wrote a custom
Been a tough week, will try to make this as clear as possible. Appreciate

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.