Re:Defensive CSS
by BiosElement on Wednesday July 06, 2022 @12:34PM
(#32003365)
Really love the togglable examples. It's often hard to imagine how a change look and while in a perfect world I'd have time to make a mockup to test each version, well, it's hardly a perfect world so examples are appreciated!
[ Parent
| on HN ]
Re:Defensive CSS
by 8n4vidtmkvmk on Wednesday July 06, 2022 @11:42PM
(#32009676)
the examples are certainly nice but it only takes a second to resize your browser when testing your own site
You don't even need to resize the whole browser window - you can use the responsive design mode of your browser's development tools to resize just the viewport of the website you are working on. And it can even emulate touch interfaces to test the relevant media queries.
And resizing the window is also something native application developers should embrace. Always roll my eyes when some game developer says they can only target 16:9 because they don't have other monitors - just make your window mode resizable and drag the corner.