I'm relatively new to CSS and I've been researching and researching this, but I'm still very unsure and thoroughly confused about how to properly make a responsive CSS for a site that works on mobile devices with retina screens.
When I use max-width, it doesn't load properly on a retina device such as a iPhone or iPad. It doesn't work because the pixel width of those devices is actually double, right? I've tried using the and (resolution: x) thing, but that didn't really work either, the retina devices just kept loading the standard CSS.
Then I tried max-device-width. Which works great on retina devices, but now I'm reading that that is discouraged because it makes for a non-fluid site on the desktop.
So what is the proper way to target width on a retina device? Do I duplicate that part of the CSS and have a max-width section for non retina devices/desktop AND a max-device-width section of the css for only retina devices? That doesn't seem right to me, but that's the only solution I can think of.
I'm trying to customize an OJS page ( https://pkp.sfu.ca/ojs/ ) So I can only use a single CSS file, even editing the html can be problematic. So for example, I'm trying to enlarge the navbar when viewed on an iPhone with retina so I do this:
@media (max-device-width: 768px) {
#navbar {
height: 50px;
}
If I use max-width, it does not increase the height of the navbar on the phone.