* A website about making websites: https://css-tricks.com
Most posts brought to you by @geoffgraham.me

@css-tricks.com
* A website about making websites: https://css-tricks.com
Most posts brought to you by @geoffgraham.me
Strings in text-overflow: A Win for Truncated Text!
The CSS-Tricks community is where the fun's at. π
No FOMO shame here, but you really should be a member!
π₯ We finally got translate3d() added to the ever-growing Almanac, courtesy of Gabriel Shoyombo!
(And, yes the demos are _awesome_)
Our buddy Steven Frenzel with another big one related to typography over at @piccalil.li β dude's on a roll!
The default font is way smaller than the fallback font and you don't really want to choose another combination.
There are @font-face descriptors has that are easy to forget about.
"Visit the toll-free URL and we'll send you this webpage..." π
There are only a few days left to get the new and expanded JavaScript for Everyone: New Game+ plus for its lowest price of the year. Operators are standing by!
A few new details about value caching added to our random() page, including a cheat sheet on passing around random values.
π‘timeline-scope can scroll more than one element at a time and @preethisam.bsky.social explains how.
Using light-dark() without getting caught out
I honestly hadn't thought about "getting caught" by light-dark() β particularly when leaning heavily on it for this site β but Martin Underhill explains the user and rendering...
https://css-tricks.com/using-light-dark-without-getting-caught-out/
I've had people tell me they don't see the point of style queries because they feel like a different approach to modifier classes. In some ways, they are! But like, way better π
I dove into it this on @css-tricks.com - https://css-tricks.com/css-style-queries-as-conditional-modifiers/
That's nice! I was struggling with the same sidebar blues and decided to give this a try... a couple small caveats for this specific case, but works beautifully. Thanks! π
Good stuff. Additionally:
A) style queries really feel like you should be able to test a computed style/value, not just custom properties
B) comparing custom properties is a sweet bonus feature blog.master.dev/the-compacti...
A classic "a-ha!" from @kevinpowell.co, this one to help distinguish where style queries make sense and where modifiers are still a good approach.
And it's a banger, of course! π₯
A classic "a-ha!" from @kevinpowell.co, this one to help distinguish where style queries make sense and where modifiers are still a good approach.
Plus, despite what my profile photo suggests, I actually am all about the fun πΊ
The latest newsletter is out! As usual, @dxnny.fun has nothing but gems for ya. π Subscribe here: css-tricks.com/newsletters/
The latest newsletter is out! As usual, @dxnny.fun has nothing but gems for ya. π
Subscribe here:
css-tricks.com/newsletters/
π Fresh baked from the Almanac: