Found 6 bookmarks
Custom sorting
You Will Never Be A Full Stack Developer | Seldo.com
You Will Never Be A Full Stack Developer | Seldo.com
Every software framework you've ever used is in the abstraction game: it takes a general-purpose tool, picks a specific set of common use-cases, and puts up scaffolding and guard rails that make it easier to build those specific use cases by giving you less to do and fewer choices to think about. The lines between these three are blurry. Popular abstractions become standardizations.
·seldo.com·
You Will Never Be A Full Stack Developer | Seldo.com
Why you should never use px to set font-size in CSS - Josh Collinsworth blog
Why you should never use px to set font-size in CSS - Josh Collinsworth blog
This is also a very good reason to avoid viewport units, like vw or vh, when setting font size. Those are also static, and impossible to override by the user. At most, a value like calc(1rem + 1vw) might be acceptable, since that still contains rem as a base. Even then, however, I’d recommend using clamp() or media queries to set minimum and maximum values, as screen sizes often go far beyond what we might expect or test.
To differentiate between the two: 1rem is always equal to the browser’s font size—or, more accurately the font size of the html element. rem stands for “root em,” and the root of a webpage is the <html> tag. So, 1rem = whatever the document font size is. (Which, again, by default, is 16px, but can be overridden by the user.) em, on the other hand, is the font size of the current element.
1px is equal to whatever the browser is treating as a single pixel (even if it’s not literally a pixel on the hardware screen).
·joshcollinsworth.com·
Why you should never use px to set font-size in CSS - Josh Collinsworth blog