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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:18:50+00:00 2026-06-08T20:18:50+00:00

I have an old site that needs a quick mobile upgrade. I’ve researched this

  • 0

I have an old site that needs a quick mobile upgrade. I’ve researched this and found many great answers about how to do this when starting a new project. I was curious to see if anybody had any experience doing this and if so what methods are best for this kind of job? I tried Modernizer and can’t get it to return true on any media queries (Modernizer.mq)

Here is the code i tried:

Modernizr.load([
 {
test : Modernizr.mq('screen and max-device-width: 480px'),
yep : 'css/mobile.css',
    nope : 'css/styles.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-08T20:18:51+00:00Added an answer on June 8, 2026 at 8:18 pm

    The valid media query is only screen and (max-device-width: 480px).

    The only is used for a bug I cannot recall now, but it doesn’t break anything in another browser, so that’s okay.

    You have to wrap the max-width specification between brackets.

    However, you shouldn’t rely on Javascript to load your css files. You can include them with

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

    You might need a fallback for non-media-query supporting browsers.

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

Sidebar

Related Questions

I have refereed old questions and found that people face many issues after installing
I have an old drupal site that I'd like to upgrade, but I need
I have looked but can't find anything that works. I have an old site
My partner and I have a webcam site that basically runs the old-school method....Every
I have an old osCommerce site that was PHP4, now running on PHP5. Named
we have this old application that we need to port to a new machine
I have a bunch of URLs from an old site that I recently updated
I am working with a website that needs to target old, Japanese mobile phones,
I have an old site that I am trying to convert to sharepoint. I
I am back for advice. I have a site that needs SEO help and

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.