(CSS) Refining the targeting of mobile devices
So I've been using this great bit of code you guys passed on to me last week to make my site more responsive to mobile.
@media screen and (max-width: 980px) {
.example { font-size: .8em }
}
Only problem is, 980px happens to be the resolution of both my smart phone AND tablet. So when I target devices via resolution only, I cannot differentiate between the two, despite the fact that one is physically 3 times the size of the other and should not be serving the same layout.
Since I want the tablet to display the exact same thing a desktop monitor would -- and simply want to target whatever is physically smaller than the average tablet (so, phones) -- how would I go about refining the code to target 'just phones'?
I'd like phones to serve a very minimalist layout -- just a single zoomed-in text column -- but that looks awful on a tablet. The tablet can comfortably handle the desktop layout, and is much better off with it (I compared both).
PS: I'm aware that 980px just happens to be my own devices' resolution, and your mileage may vary on that front... but after researching mobile resolution standards, it's still one I'm comfortable using as a cut-off point, if I'm forced to pick one.
