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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:51:12+00:00 2026-06-15T05:51:12+00:00

I need to design a responsive website that is responsive also when the browser

  • 0

I need to design a responsive website that is responsive also when the browser window is resized.

I have added the following code in the head tag:

 <meta name="viewport" content="width=device-width, initial-scale=1.0">

And i have included the following styles:

<link rel="stylesheet" type="text/css" media="screen and (min-device-width: 481px) and (max-device-width: 1500px)" href="style.css" /> 
<link rel="stylesheet" type="text/css" media="screen and (max-device-width: 480px)" href="mobile.css" />

However when i resize my browser window to a width of less than 480 pixels, still the document is styled using style.css whereas it should have been styled by mobile.css

What am i missing?

  • 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-15T05:51:13+00:00Added an answer on June 15, 2026 at 5:51 am

    max-device-width refers to your device resolution, not the window width size, that is min-width or max-width see here for better understanding.

    device-width are used when you want to target mobile devices but not desktop small resized windows.

    So, if you want your mobile.css be used for mobile devices with screen resolution width less than 481px and also include desktop browsers windows resized to less than 481px then replace:

    (max-device-width: 480px)
    

    for:

    (max-width: 480px)
    

    in your mobile.css media query rule.

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

Sidebar

Related Questions

I need to design a data structure that supports the following operations: search element
Currently I am creating a responsive website. The problem I currently have is that
This is an ASP.NET MVC website. Following domain driven design, we have a service
I have the following dilemma with two elements (menu items) that I need to
I need to design a system that will control access to certain information. The
I need to design a page for a web application that makes sense for
I have seen many sites that are responsive both on desktop browsers and mobile
I am building a responsive website, and for good user experience, I need some
Code example: http://codepen.io/asuh/pen/JgdLK This is for a responsive design I'm working on. The amount
I am trying to learn responsive design. I am building a website and one

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.