Alvaro Montoro: CSS One-Liners to Improve (Almost) Every Project
CSS-Tricks
by Geoff Graham
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
Visit website
CSS Stuff I’m Excited After the Last CSSWG Meeting
CSS-Tricks
by Juan Diego Rodríguez
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
Visit website
“If” CSS Gets Inline Conditionals
CSS-Tricks
by Geoff Graham
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
Visit website
Transitioning to Auto Height
CSS-Tricks
by Geoff Graham
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
Visit website
Poppin’ In
CSS-Tricks
by Geoff Graham
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
Visit website
CSS Meditation #8: .work + .life { border: 10px so...
CSS-Tricks
by Geoff Graham
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
Visit website
CSS Meditation #6: The color space is always calc(...
CSS-Tricks
by Geoff Graham
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
Visit website
CSS Meditation #5: :where(:is(.my-mind)) original...
CSS-Tricks
by Geoff Graham
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
Visit website
CSS Meditation #4: Select, style, adjust. Select, ...
CSS-Tricks
by Geoff Graham
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
Visit website
CSS Meditation #3: A pseudo is as a pseudo does. ...
CSS-Tricks
by Geoff Graham
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
Visit website

Follow CSS-Tricks on FeedSpot

Continue with Google
Continue with Apple
OR