3 ms·
The typical way this is done these days is by media queries in CSS, so you'd write a rule for styling based on screen width, like @media (max-width: 55
by kryptiskt 7y ago
The typical way this is done these days is by media queries in CSS, so you'd write a rule for styling based on screen width, like
@media (max-width: 550 px) {
body {
background-color: white;
}
}
turns the background white on small screens.
- oefrha 7y agogp is likely asking about how servers decide to redirect to the m.* version instead of the desktop version (or in some cases serve a different mobile version under the same domain), in which case, yes, it’s usually user agent sniffing.