Advertisement · 728 × 90

Posts by Juan Diego Rodríguez

Video

Another one for the Almanac!

css-tricks.com/almanac/func...

5 days ago 3 0 0 0
Video

Select multiple dates on a calendar where the :nth-child()'s “n of selector” syntax does all the heavy lifting. Perfect example of CSS and JS working together in harmony.

css-tricks.com/selecting-a-...

1 week ago 12 2 1 1

Forgot to say that it's FREE (!)

2 weeks ago 0 0 0 0
Post image

Hey everyone! I am super excited to announce that, in exactly one month (Wednesday, May 6), I'll be speaking at Meets Style Sheets by @smashingconf.com about Anchor Positioning!!!

I'll start the countdown now: 30 days left 👀

Get your tickets here! smashingconf.com/meets-style-...

2 weeks ago 1 2 1 0

Has CSS gone too far?

2 weeks ago 2 1 0 0
Preview
Yet Another Way to Center an (Absolute) Element | CSS-Tricks TL;DR: We can center absolute-positioned elements in three lines of CSS. And it works on all browsers!

A little gem @monknow.bsky.social stumbled into when working on something... we can center an absolutely positioned element with justify-self:

.element {
position: absolute;
place-self: center;
inset: 0;
}

He explains it nicely here:

css-tricks.com/yet-another-...

1 month ago 12 2 0 0

Thanks for the feature!!

2 months ago 1 0 0 1
Video

The progress() function is sorta like clamp() but returns 1 or 0. Combine it with calc() and you can get weird with it.

css-tricks.com/almanac/func...

2 months ago 24 2 0 0

I have a new article up trying to make the perfect pie chart in CSS! There is probably a lot to improve, so a little feedback would be much appreciated

2 months ago 3 2 0 0
Advertisement

The CSSWG just resolved to add this to the spec 🥳

github.com/w3c/csswg-dr...

2 months ago 159 23 8 2
Video

I was lucky to be a privileged tester of @codepen.io 2.0, and now they have released the Private Beta.

codepen.io/beta

It's finally time to unleash some cool "View Transition" demos because with the 2.0 version, we can have many pages in one pen 👀

Kudos to @chriscoyier.net and the entire team!

2 months ago 27 5 0 1

What if, instead of telling the LLM step by step how to do a task, we write those steps ourselves? 🤯

3 months ago 0 0 0 0

About to have CSS ANCHOR POSITIONING FULLY CROSS-BROWSER!!

4 months ago 152 18 4 4

Congrats Sunkanmi!

4 months ago 1 0 1 0

My last post on trigonometric functions just got published!!

Thanks so much to anyone who gave it a read :)

5 months ago 3 0 0 0

The second part on trigonometric functions just got published. 🧡

The first part got a lot of reads, so thanks so much! A third and last part will be coming soon 👀

5 months ago 3 0 0 0

!!!

5 months ago 0 0 0 0

CSS trig functions make wayyy more sense the way @monknow.bsky.social explains then, even to non-math-y folks like me.

He's put together explainers on sin(), cos(), and tan().

⭐️ css-tricks.com/almanac/func...
⭐️ css-tricks.com/almanac/func...
⭐️ css-tricks.com/almanac/func...

5 months ago 11 3 0 1

Thanks so freaking much, Vale 😭😭😭

6 months ago 4 0 0 0
Advertisement

A new one for CSS-TRICKS!!!

6 months ago 11 3 0 0
Video

"Avatar Indicators, using CSS Mask / Trig" by Simon Goellner

codepen.io/simeydotme/p...

7 months ago 10 2 0 0

New one on CSS-Tricks!!

Talking about sin() and cos() here, but we'll get to the rest of trig functions later on ;)

7 months ago 1 0 0 0

Glad to see I am not the only one 🫂

7 months ago 1 0 0 0
Post image

Is it just me, or is the CSSWG drafts site loading without styles?

(E.g.: drafts.csswg.org/css-anchor-p...)

7 months ago 0 0 1 0

I can't express how awesome and supportive the CSS community is!! THANKS :)

7 months ago 3 0 0 0
Preview
radial-gradient() | CSS-Tricks The radial-gradient() functions creates a circular or elliptical color gradient starting from a center point and spreading outward.

Everything you ever wanted, or needed, to know about radial gradients, courtesy of @monknow.bsky.social — even digging into those tricky hue interpolation and radial-extent keywords.

css-tricks.com/almanac/func...

css-tricks.com/almanac/func...

8 months ago 13 2 0 0
Preview
Setting Line Length in CSS (and Fitting Text to a Container) | CSS-Tricks The many ways to juggle line length when working with text... including two proposed properties that could make it easier in the future.

Here’s one from @dxnny.fun covering many ways to juggle line length when working with text... including two proposed properties that could make it easier in the future.

css-tricks.com/setting-line...

9 months ago 10 2 0 0
Advertisement

It's amazing how much I've learned just from working with you. Really grateful too🫂🫂🫂

9 months ago 1 0 0 0

I do a terrible job highlighting recent work that's gone into the CSS-Tricks almanac.

A few choice samples:

- view(): css-tricks.com/almanac/func...

- ::target-text: css-tricks.com/almanac/pseu...

- shape(): css-tricks.com/almanac/func...

- sibling-count(): css-tricks.com/almanac/func...

9 months ago 10 6 1 0

New one!!!

9 months ago 1 0 0 0