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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:07:39+00:00 2026-06-16T04:07:39+00:00

I was searching for a method to set different stylesheets depending whether users device

  • 0

I was searching for a method to set different stylesheets depending whether users device is non – retina or retina. I came across tons of different methods, so now I don’t know which one to do. Although in my opinion this seems to be easier and more efficient one:

<link rel="stylesheet" href="myCss.css" media="screen and min-device-pixel-ratio: 2">

But I’m not sure it it is the latest syntax, will this work for all modern browsers (including ie9), is there a way to improve this method?

  • 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-16T04:07:40+00:00Added an answer on June 16, 2026 at 4:07 am

    Your approach with the media attribute in the link tag is a good start. Although I would recommend using the new media query which you can use directly inside the .css.

    http://www.w3.org/TR/css3-mediaqueries/

    You can do that as so:

    @media only screen and (min--moz-device-pixel-ratio: 2),
    only screen and (-o-min-device-pixel-ratio: 2/1),
    only screen and (-webkit-min-device-pixel-ratio: 2),
    only screen and (min-device-pixel-ratio: 2){
        /* The retina stuff here */
        }
    

    Futher reading: http://menacingcloud.com/?c=highPixelDensityDisplays

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

Sidebar

Related Questions

Searching the web for some method to send POST requests in Objective-C, I came
I'm searching a method to close a specific window by the title. I tried
I'm searching for a method to choose the first record of a grouped_collection_select, or
I am searching for a method to intersect my array collections. I have one
While I am searching for better method to exit a Swing Application in between
I am searching about drawing bordered text on UIView. Implemented following method : -
In regards to the above and/or including other methods, if you are searching for
I was debugging one of the applications I work on and came across an
I am having problem with my Search Method once the item i am searching
new Android developer here. I'm doing a form that let's users set up some

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.