3 ms·
> the tendency of pretty much every site out there to use the window width as a means to differentiate between mobile and desktop sites How would you different
by aembleton 6y ago
> the tendency of pretty much every site out there to use the window width as a means to differentiate between mobile and desktop sites
How would you differentiate them? At least with the width you can use css media queries so no Javascript is needed.
- badsectoracula 6y agoBy using some mobile specific pseudo-selector? There are pseudo-selectors for printing, there could be selectors for mobile too. Not sure, i'm not into web development, i just see using the window width as the wrong way. I keep my window down to that size even when i'm using monitors with larger resolutions (1080p or 1440p), it is a bad idea to assume window width == monitor resolution == device type.