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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:45:20+00:00 2026-06-15T19:45:20+00:00

I am currently trying to design a layout which will be compatible for multiple

  • 0

I am currently trying to design a layout which will be compatible for multiple screen sizes. The screen sizes I am designing for are listed below:

Screen Sizes:

  1. 640×480
  2. 800×600
  3. 1024×768
  4. 1280×1024 (and larger)

The thing that I’m having trouble with is creating the css3 media queries, so that my layout changes when the window’s width gets to one of these widths. Below is an example of the media queries I’m currently using, but it is not working for me, so I’m wondering if someone could help me fix it.

<link rel="stylesheet" type="text/css" media="screen and (max-width: 700px)" href="css/devices/screen/layout-modify1.css">
<link rel="stylesheet" type="text/css" media="screen and (min-width: 701px) and (max-width: 900px)" href="css/devices/screen/layout-modify2.css">
<link rel="stylesheet" type="text/css" media="screen and (max-width: 901px)" href="css/devices/screen/layout-modify3.css">

I tried going with a new set of media queries, but they still aren’t working for me. Could someone please help explain what I’m dong wrong. Several of you have already tried explaining, but I’m not getting it. The new media queries are displayed below:

<link rel="stylesheet" type="text/css" media="screen and (max-width: 640px)" href="css/devices/screen/layout-modify1.css">
<link rel="stylesheet" type="text/css" media="screen and (max-width: 800px)" href="css/devices/screen/layout-modify2.css">
<link rel="stylesheet" type="text/css" media="screen and (max-width: 1024px)" href="css/devices/screen/layout-modify3.css">
<link rel="stylesheet" type="text/css" media="screen and (max-width: 1280px)" href="css/devices/screen/layout-modify4.css">
  • 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-15T19:45:22+00:00Added an answer on June 15, 2026 at 7:45 pm

    Unless you have more style sheets than that, you’ve messed up your break points:

    #1 (max-width: 700px)
    #2 (min-width: 701px) and (max-width: 900px)
    #3 (max-width: 901px)
    

    The 3rd media query is probably meant to be min-width: 901px. Right now, it overlaps #1 and #2, and only controls the page layout by itself when the screen is exactly 901px wide.

    Edit for updated question:

    (max-width: 640px)
    (max-width: 800px)
    (max-width: 1024px)
    (max-width: 1280px)
    

    Media queries aren’t like catch or if/else statements. If any of the conditions match, then it will apply all of the styles from each media query it matched. If you only specify a min-width for all of your media queries, it’s possible that some or all of the media queries are matched. In your case, a device that’s 640px wide matches all 4 of your media queries, so all for style sheets are loaded. What you are most likely looking for is this:

    (max-width: 640px)
    (min-width: 641px) and (max-width: 800px)
    (min-width: 801px) and (max-width: 1024px)
    (min-width: 1025px)
    

    Now there’s no overlap. The styles will only apply if the device’s width falls between the widths specified.

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

Sidebar

Related Questions

I am currently trying to design a piece of screen-capture software. One design question
So I have this template design that is currently absolutely positioned, but I'm trying
I am currently trying to write some code that will accept some FTP details,
I am currently trying to design a DB for a new project I am
I'm currently trying to design the database for a simple social site. I'm using
My current project used tables for layout design and I am trying to convert
I'm currently trying to design an application and I'm having trouble trying to decide
Im currently trying to decide on a design for a TCP server where the
we are currently trying to determine a application architecture for an application that will
We're adopting MongoDB for a new solution and are currently trying to design 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.