Frontend Masters Boost RSS Feed https://frontendmasters.com/blog Helping Your Journey to Senior Developer Thu, 24 Oct 2024 14:01:52 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.3 225069128 CSS min() All The Things https://frontendmasters.com/blog/css-min-all-the-things/ https://frontendmasters.com/blog/css-min-all-the-things/#respond Wed, 23 Oct 2024 15:39:18 +0000 https://frontendmasters.com/blog/?p=4253 Victor Ayomipo saw our post about using container units for everything. He was more optimistic than I that our result was good. My thinking is that there are plenty of things you straight up don’t want to use container units for. Victor did a similar exercise with (over?)-using min() and viewport units. Turns out there are lots of niceties, and I agree that min() is underused, but that you still can’t dogmatically say one particular sizing approach is always best. Personally, I’m rocking min() for container “width”, like .wrapper { inline-size: min(300px, 100dvw); on the regular now.

]]>
https://frontendmasters.com/blog/css-min-all-the-things/feed/ 0 4253