Tooltip Best Practices
Zell Liew |
What are tooltips, exactly? There's two kinds and the one you use has implications on the user experience, as Zell illustrates in this explainer on best practices.
Tooltip Best Practices originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.
... read more
Come to the light-dark() Side
Sara Joy |
Dark mode interfaces have matured a lot in the past few years. We all know the "traditional" approach using media queries but in this article, Sara Joy demonstrates modern CSS features that make respecting user color scheme preferences pretty darn easy.
Come to the light-dark() Side originally pub... read more
Left Half and Right Half Layout – Many Different Ways
Geoff Graham |
Imagine a scenario where you need to split a layout in half. Basically two equal height columns are needed inside of a container. Each side takes up exactly half of the container. Like many things in CSS, there are a number of ways to go about this.
Left Half and Right Half Layout – Many Different... read more
You can use text-wrap: balance; on icons
Geoff Graham |
The CSS text-wrap property is (rightfully) widely assumed to be used strictly for text elements. But Terrence Eden posted an article on his blog that shows how it can also be used to balance the way other types of elements wrap, including icons.
You can use text-wrap: balance; on icons originally ... read more
Clarifying the Relationship Between Popovers and Dialogs
Zell Liew |
Pop quiz! What's the difference between a Popover element and a Dialog element? The answer is not all that clear and is widely misunderstood, but Zell has a clear way to explain it so that you know which element to reach for in your work.
Clarifying the Relationship Between Popovers and Dialogs or... read more
Clamp it! VS Code extension
Geoff Graham |
There’s a lot of math behind fluid typography. CSS does make the math a lot easier these days, but even if you’re comfortable with that, writing the full declaration can be verbose and tough to remember. I know I often …
Clamp it! VS Code extension originally published on CSS-Tricks, which is part... read more
Unleash the Power of Scroll-Driven Animations
Geoff Graham |
I’m utterly behind in learning about scroll-driven animations apart from the “reading progress bar” experiments all over CodePen. Well, I’m not exactly “green” on the topic; we’ve published a handful of articles on it including this neat-o one by Lee …
Unleash the Power of Scroll-Driven Animations... read more
Combining forces, GSAP & Webflow!
Ryan Trimble |
Change can certainly be scary whenever a beloved, independent software library becomes a part of a larger organization. I’m feeling a bit more excitement than concern this time around, though.
If you haven’t heard, GSAP (GreenSock Animation Platform) is teaming …
Combining forces, GSAP & Webfl... read more
Mastering theme.json: You might not need CSS
Geoff Graham |
I totally get the goal here: make CSS more modular and scalable in WordPress. Put all your global WordPress theme styles in a single file, including variations. JSON offers a nicely structured syntax that’s easily consumable by JavaScript, thereby allowing …
Mastering theme.json: You might not nee... read more
Solving Background Overflow With Inherited Border Radii
Zell Liew |
One of the interesting (but annoying) things about CSS is the background of children’s elements can bleed out of the border radius of the parent element. Here’s an example of a card with an inner element. If the inner element …
Solving Background Overflow With Inherited Border Radii originally pub... read more