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 8964457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:35:40+00:00 2026-06-15T16:35:40+00:00

I require assistance in constructing a media query, which will allow me to target

  • 0

I require assistance in constructing a media query, which will allow me to target desktops/laptops. I’m using the table below as a reference for display sizes.

Listed sizes in the Display Size list correspond to the Optimal Canvas Width list.

Display Sizes (in pixels):

  1. 800×600
  2. 1024×768
  3. 1280×800

Optimal Canvas Width (in pixels):

  1. width 780
  2. width 960
  3. width 1220

The table I’m using as a reference basically lists layout widths to use for each display size, but that is not what I’m confused about. What I don’t understand is how to construct a media query for all styles within these widths.

This is what I have so far:

<link rel="stylesheet" href="file.css" media="only screen and (min-width: 780px) and (max-width: 1220px)">

All I want to know is if I’m doing this right. Hope I’ve explained this clearly enough! Thanks in advance!

  • 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-15T16:35:41+00:00Added an answer on June 15, 2026 at 4:35 pm

    Not sure about the ‘only’, but otherwise it looks fine. This will match screens between 780 and 1220px wide. You should add other queries for other sizes to include different files for those sizes.

    Remember not to specify a min-width for the smallest, and no max-width for the largest, otherwise you won’t have any (specific) styling on very small or very large screens.

    Note that you can test your media queries quite easily. Just resize your browser window.

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

Sidebar

Related Questions

Using php coding, I'm attempting to make a script which will grab content from
I require assistance on writing the following query within LINQ. Ideally I want to
I have a mysql table which will store users email addresses (each is unique
require installed gems are not visible. Test with hpricot which I installed several times:
require 'coderay' puts CodeRay.scan('puts Hello, world!', :ruby).page This code will print full HTML page
Currently I am working on my exam project and I require some assistance. The
I hope somebody can be of assistance, thank you in advance. I am using
Im a newbie to jquery. I really require assistance with putting jquery in my
I require some assistance, I have a pdf file that is located on a
I am looking for a bit of Liferay/Glassfish assistance here. I am currently using

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.