![CSS-Tricks](https://i1.feedspot.com/4487476.jpg?t=1606107973)
CSS-Tricks
7,712 FOLLOWERS
Find the Tips, Tricks, and Techniques on using Cascading Style Sheets. CSS-Tricks is a front-end coding blog mostly on CSS. CSS-Tricks is created, by Chris Coyier and a team of swell people.
CSS-Tricks
2d ago
These sorts of roundups always get me. My wife will flip through Zillow photos of the insides of homes for hours because she likes seeing how different people decorate, Feng Shui, or what have you. That’s her little dip into Voyeur-Land. Mine? It could easily be scrolling through CSS snippets that devs keep within arm’s reach.
Alvaro was kind enough to share the trustiest of his trusty CSS:
Limit the content width within the viewport
Increase the body text size
Increase the line between rows of text
Limit the width of images
Limit the width of text within the content
Wrap headings in a more b ..read more
CSS-Tricks
5d ago
From June 11–13, the CSS Working Group (CSSWG) held its second face-to-face meeting of the year in Coruña, Spain, with a long agenda of new features and improvements coming to language. If 2023 brought us incredible advances like out-of-the-box nesting, container and style queries, or the has: selector, then 2024 is going to be even more packed with even more ground-breaking additions. Whether a new feature like inline conditionals is just starting or long-term projects are wrapping up, 2024 is already filled with exciting developments — and we’re still in July!
I wanted to share what I think ..read more
CSS-Tricks
2w ago
A few sirens went off a couple of weeks ago when the CSS Working Group (CSSWG) resolved to add an if() conditional to the CSS Values Module Level 5 specification. It was Lea Verou’s X post that same day that caught my attention:
A historical day for CSS ??
If you write any components used and/or styled by others, you know how huge this is!
background: if(style(–variant: success), var(–green));
Even if you don’t, this will allow things like:
padding: if(var(–2xl), 1em, var(–xl) or var(–m),… pic.twitter.com/cXeqwBuXvK
— Lea Verou (@LeaVerou) June 13, 2024
Lea is the one who opened the GitHub ..read more
CSS-Tricks
3w ago
I know this is something Chris has wanted forever, so it’s no surprise he’s already got a fantastic write-up just a day after the news broke. In fact, I first learned about it from his post and was unable to dredge up any sort of announcement. So, I thought I’d jot some notes down because it feels like a significant development.
The news: transitioning to auto is now a thing! Well, it’s going to be a thing. Chrome Canary recently shipped support for it and that’s the only place you’ll find it for now. And even then, we just don’t know if the Chrome Canary implementation will find its way to th ..read more
CSS-Tricks
1M ago
Oh, hey there! It’s been a hot minute, hasn’t it? Thought I’d pop in and say hello. ?
Speaking of “popping” in, I’ve been playing with the Popover API a bit. We actually first noted it wayyyyy back in 2018 when Chris linked up some information about the <dialog> element. But it’s only been since April of this year that we finally have full Popover API support in modern browsers.
There was once upon a time that we were going to get a brand-new <popover> element in HTML for this. Chromium was working on development as recently as September 2021 but reached a point where it was droppe ..read more
CSS-Tricks
1M ago
CSS Meditation #8: .work + .life { border: 10px solid #000; }
originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter ..read more
CSS-Tricks
1M ago
CSS Meditation #6: The color space is always calc(rgb(0 255 0)+er) on the other side of the fence.
originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter ..read more
CSS-Tricks
1M ago
CSS Meditation #5: :where(:is(.my-mind))
originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter ..read more
CSS-Tricks
1M ago
CSS Meditation #4: Select, style, adjust. Select, style, adjust. Select, sty…
originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter ..read more
CSS-Tricks
1M ago
CSS Meditation #3: A pseudo is as a pseudo does.
originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter ..read more