Advertisement · 728 × 90

Posts by Nils Binder

Wow thanks. One more day off. Wanna come over for a coffee? I guess I can manage to bake a cake as well.

2 weeks ago 1 0 1 0

After thinking it through, I’d vote for 100px across all elements. It reminds me of how line-height behaves—set it to 1.5em and that computed value flows down to children. Not a perfect analogy, but it aligns with what feels intuitive.

2 weeks ago 1 0 0 0
Preview
Widow-Killer Auto-Grid ...

Ever wanted to get rid of “widows” in the last row of your auto-generated grid? I found a solution with modern CSS. We do need to know the child count though.

@kevinpowell.co I actually came up with this after you asked about use-cases for child-count.

codepen.io/enbee81/pen/...

3 weeks ago 7 0 2 0
Preview
The Shape of Friction · Matthias Ott Web design engineer, UX designer, teacher, and speaker – helping teams build websites and digital products with a focus on CSS, accessibility, and performance.

✍️ New post: The Shape of Friction

I wrote a short blog post reply to @davatron5000.bsky.social’s recent post (👏) about generative AI, friction, and people.

matthiasott.com/notes/the-sh...

3 weeks ago 89 28 4 9

Also related to sliders. If you want to place them on a 3d hexagon or octagon or whatever depending on the child count you need to know how many items there are to get the correct angle for the transforms.

3 weeks ago 1 0 0 0

In a css carousel it’s hard to get the width of the scroll marker group. The scroll markers don’t really “live” inside the group. So when know the number of children you can give it a fixed width placing the scroll buttons next to it.

3 weeks ago 1 0 0 0

Parts of your “design” are more accessible at least… not sure about the hidden history though

3 weeks ago 0 0 0 0

“We made the buttons on the screen look so good you'll want to lick them.”
Steve Jobs

3 weeks ago 2 0 1 0
types: `calc()`: Divisions between typed values produce unitless number ("typed arithmetic") | Can I use... Support tables for HTML5, CSS3, etc

Could you maybe also use the calculated hypot value (using 100cqi and 100cqb) and divide it by 1px? Support seems to be similar to scroll animations.

caniuse.com/mdn-css_type...

4 weeks ago 0 0 1 0
Advertisement

Looking forward to it. I didn’t look too much into how you calculated the length and what all the keyframe animations do. So will definitely read it.

4 weeks ago 2 1 1 0
Preview
Timetable | 03b ...

I was quite proud of this solution that uses scroll driven animations for the sticky headers. But having a native solution would be even better of course

codepen.io/enbee81/pen/...

+1 for the need to have a way to detect support so previous solutions don’t break.

4 weeks ago 1 0 0 0
CSS is too powerful now
CSS is too powerful now YouTube video by Kevin Powell

And I also have to mention @kevinpowell.co’s video that also helped me understand all this:

youtu.be/Y-3tPDZCk2o?...

4 weeks ago 2 0 0 0
Preview
Graph Theory (Chrome-only) https://css-tip.com/graph-theory/...

Here’s the original pen by @css-only.dev that helped me do this:

codepen.io/t_afif/pen/Y...

4 weeks ago 1 0 0 0
Preview
anchor ray 3 spotlights - final This would not have been possible without seeing Temani Afif’s mind-blowing CSS-only graph theory. https://codepen.io/t_afif/pen/YPWMmOP...

After finally understanding @css-only.dev's demo for calculating the shortest paths between points, I was able to create this little spotlight effect. Pretty happy with the result!

codepen.io/enbee81/deta...

4 weeks ago 56 13 4 0

Thanks for including my little article 🥰

4 months ago 2 0 1 0

🥰

4 months ago 2 0 0 0
Icon of Notion’s AI agent with a small red chili pepper hat.

Icon of Notion’s AI agent with a small red chili pepper hat.

@bell.bz They dressed up.
They put on their best little chili hat.
It’s almost Christmas — they’re basically festive now — and you’re still pretending they don’t exist. Brutal.

4 months ago 0 0 0 0

A bit more niche, but next to fancy things like scroll-driven animations, CSS also introduced new math functions like round() and mod(). With them, you can take a time value like 1045 (without the colon) and calculate the minutes passed since midnight.
bsky.app/profile/ichi...

4 months ago 4 1 0 0
Advertisement
Preview
Building a multi stage timetable with modern CSS using grid, subgrid, round(), and mod(). - 9elements Combining finest craftsmanship with elegant design to ship innovative digital experiences.

If you want the full breakdown of how this is done, here’s the write-up 👇
9elements.com/blog/buildin...

5 months ago 22 4 0 2
Video

Build a multi-stage timetable for a conference — fully in modern CSS.
Each hour grows automatically to fit all sessions.

🍾 heavy use of subgrid.
🍾 round() and mod() to place sessions accurately
🍾 scroll-driven animations for sticky stage headings

5 months ago 19 0 1 0
Preview
Ex-Masonry Display Type Keyword Poll See https://github.com/w3c/csswg-drafts/issues/12022 for context. This poll intentionally leaves out `masonry` as an option, see https://github.com/w3c/csswg-drafts/issues/12022#issuecomment-34172962...

There's a new #CSS Working Group poll to get feedback on different names for the infamous 'Pinterest' layout.

- Since it uses many of the grid-* properties, `grid` will be in the name somewhere
- We don't use metaphors in CSS names, so `masonry` is not listed here

docs.google.com/forms/d/e/1F...

5 months ago 84 44 15 3

Just bc we got used to it doesn’t mean it’s a good name. IMHO something like grid lanes is more intuitive for future developers to grasp than masonry.

5 months ago 2 0 3 0

Got it! Let’s see if I can finally understand where and why I can — and should — use them.
Thanks, @sarasoueidan.com, for the second shout-out — your recommendation tipped me over the edge to give it a try.

5 months ago 4 0 1 0

Absolutely love this. 🥰

5 months ago 1 0 0 0

Quite useful when writing repetitive stuff in css. Like variable definition for dark light themes or nth-child delay things. When writing js I found it to be horrible.

6 months ago 2 0 1 0

Once it even did a full “slide out of view.” Could be a nice effect — but I’d like to control when that happens, not have Safari decide by accident.
@jensimmons.bsky.social maybe you can tell me if this is a bug or a feature that I can opt out of.

6 months ago 2 0 0 0
Video

Has anyone else seen this in iOS 26? Sticky and fixed elements shift slightly out of view when scrolling down, then snap back when scrolling up. I made a demo to test it: cdpn.io/pen/debug/Qw... Curious if others can reproduce.

6 months ago 2 0 1 0
Green awning of a café with the name “TAILWIND café | bar” printed in pink and white.

Green awning of a café with the name “TAILWIND café | bar” printed in pink and white.

Visiting Seattle… I was NOT prepared for this. 🤣🤣
Breakfast was delicious though!
#tailwind

7 months ago 6 0 1 0
Advertisement
Video
7 months ago 0 0 0 0