Elektrine
Log in Register
Paige Chat Timeline Gallery Friends Email Drive DNS Private DNS Domains VPN Kairo Nerve
Remote

CSS-Tricks

@csstricks@mastodon.social
mastodon 4.8.0-nightly.2026-10-06
  • Open on mastodon.social

The official account for CSS-Tricks.com, a web design community powered by
DigitalOcean.

1785 Followers
64 Following
32 Posts
Joined December 14, 2022
Everything:
* { box-sizing: border-box; }
Website:
https://css-tricks.com
Bluesky:
https://bsky.app/profile/css-tricks.com
Twitter:
https://twitter.com/css
Open post
CSS-Tricks @csstricks@mastodon.social
· 6mo ago

So, corner-shape can be animated. Notice the added sprinkle of color-contrast().

https://css-tricks.com/experimenting-with-scroll-driven-corner-shape-animations/

Experimenting With Scroll-Driven corner-shape Animations | CSS-Tricks
CSS-Tricks

Experimenting With Scroll-Driven corner-shape Animations | CSS-Tricks

The new CSS corner-shape() property is mathematical, so it’s easily animated. Author Daniel Schwarz pokes at animating the property for interesting UI effects.

9
0
3
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 5mo ago

Some choice excerpts from
@Wilto@front-end.social's "Google Prompt API" response

https://css-tricks.com/googles-prompt-api/

> You now have an LLM running on your machine, and any website you visit can make use of it [...] Google has said not to worry about it.

😳

Google’s Prompt API | CSS-Tricks
CSS-Tricks

Google’s Prompt API | CSS-Tricks

Mat Marquis on Google pulling the web standards equivalent of U2 album marketing:

5
2
4
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 6mo ago

If you've been on the fence about
@piccalilli@front-end.social's JavaScript for Everyone course, first off: be like Nike and just do it.

We've published an excerpt from it about destructuring by none other than
@wil.to to give you just a taste.

https://css-tricks.com/javascript-for-everyone-destructuring/

JavaScript for Everyone: Destructuring | CSS-Tricks
CSS-Tricks

JavaScript for Everyone: Destructuring | CSS-Tricks

Mat Marquis and Andy Bell have released JavaScript for Everyone, an online course offered exclusively at Piccalilli. This post is an excerpt from the course taken specifically from a chapter all about JavaScript destructuring.

7
0
4
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 7mo ago

Here's a math-y way to approximate the contrast-color() function from @khamer@me.dm while we're waiting on full support.

https://css-tricks.com/approximating-contrast-color-with-other-css-features/

Approximating contrast-color() With Other CSS Features | CSS-Tricks
CSS-Tricks

Approximating contrast-color() With Other CSS Features | CSS-Tricks

The new contrast-color() function is not fully supported yet. But can we still implement it in a cross-browser friendly way using other new CSS features?

8
0
2
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 6mo ago

A crap-ton of shape() inspiration from none other than @css@front-end.social to help burn your Thursday.

https://css-tricks.com/complex-css-shapes-with-shape-function/

front-end.social

CSS by T. Afif :verified: (@css@front-end.social) - Front-End Social

5
0
3
1
Open post
CSS-Tricks @csstricks@mastodon.social
· 7mo ago

A really good look at the Popover and Dialog APIs... and what makes them different.

https://css-tricks.com/popover-api-or-dialog-api-which-to-choose/

Popover API or Dialog API: Which to Choose? | CSS-Tricks
CSS-Tricks

Popover API or Dialog API: Which to Choose? | CSS-Tricks

Choosing between Popover API and Dialog API is difficult because they seem to do the same job, but they don’t! After a bit lots of research, I discovered that the Popover API and Dialog API are wildly different in terms of accessibility and we'll go over that in this article.

6
0
5
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 6mo ago

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.

https://css-tricks.com/selecting-a-date-range-in-css/

Selecting a Date Range in CSS | CSS-Tricks
CSS-Tricks

Selecting a Date Range in CSS | CSS-Tricks

A clever approach for selecting multiple dates on a calendar where the :nth-child()'s “n of selector” syntax does all the heavy lifting... even in the JavaScript.

4
0
1
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 7mo ago

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

6
1
5
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 7mo ago

TIL: We can center an absolutely positioned element with justify-self:

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

Juan Diego explains it nicely here:

https://css-tricks.com/yet-another-way-to-center-an-absolute-element/

Yet Another Way to Center an (Absolute) Element | CSS-Tricks
CSS-Tricks

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!

5
0
5
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 7mo ago

Interop 2026 is officially a thing and there's plenty of new (and even old) CSS features that we can look forward to being cross-browser compatible and consistent!

https://css-tricks.com/interop-2026/

Interop 2026 | CSS-Tricks
CSS-Tricks

Interop 2026 | CSS-Tricks

Interop 2026 is officially a thing and there's plenty of new (and even old) CSS features that we can look forward to being cross-browser compatible and consistent!

5
0
3
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 7mo ago

Is it impossible for @css@font-end.social to NOT take something to the next level, even his own work.

https://css-tricks.com/making-a-responsive-pyramidal-grid-with-modern-css/

Making a Responsive Pyramidal Grid With Modern CSS | CSS-Tricks
CSS-Tricks

Making a Responsive Pyramidal Grid With Modern CSS | CSS-Tricks

This is the second part of a small two-part series. In this article, we will explore another type of grid: a pyramidal one. We are still working with hexagon shapes, but a different organization of the elements., while exploring other different shapes.

5
0
1
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 6mo ago

Introducing the CSS Olfactive API

Something's s little... smelly about it. 👃

https://css-tricks.com/css-olfactive-api/

Sniffing Out the CSS Olfactive API | CSS-Tricks
CSS-Tricks

Sniffing Out the CSS Olfactive API | CSS-Tricks

A deep sniff of the new CSS Olfactive API, a set of proposed features for immersive user experiences using smell.

3
1
1
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 7mo ago

SVG or raster? The short answer to that question is: there’s almost no difference at all if you are working on something very small and specific.

But it's more nuanced than that, and Mariana Beldi has all the nerdy details.

https://css-tricks.com/loading-smarter-svg-vs-raster-loaders-in-modern-web-design/

Loading Smarter: SVG vs. Raster Loaders in Modern Web Design | CSS-Tricks
CSS-Tricks

Loading Smarter: SVG vs. Raster Loaders in Modern Web Design | CSS-Tricks

Let’s get nuanced in this article and discuss the capabilities of both SVG and raster imaged so that you can make informed decisions in your own work.

4
0
3
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 5mo ago

Managing two states in #CSS (a la the Checkbox Hack) is great and all, but using radio buttons for multiple states opens up a bunch more options.

Oodles of examples from @amit_sheen@mastodon.cloud

https://css-tricks.com/the-radio-state-machine/

mastodon.social

Mastodon

2
0
2
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 7mo ago

Poking at a new proposal that would allow an element to match an element when the pointer gets :near() it by a certain amount.

https://css-tricks.com/potentially-coming-to-a-browser-near-you/

Potentially Coming to a Browser :near() You | CSS-Tricks
CSS-Tricks

Potentially Coming to a Browser :near() You | CSS-Tricks

Danny has several ideas for how we could use :near(), a proposed pseudo-class that detects when the pointer is near an element.

3
1
2
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 7mo ago

Aren't z-index values one of those things we all sorta struggle with? How we choose them, how we manage them, how we balance the stacking contexts, etc.

@amit_sheen@mastodon.cloud
has a great way to approach it... all around tokens for intentional intentional layers.

https://css-tricks.com/the-value-of-z-index/

The Value of z-index | CSS-Tricks
CSS-Tricks

The Value of z-index | CSS-Tricks

How we look at the stacking order of our projects, how we choose z-index values, and more importantly, the implications of those choices.

2
0
1
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 4mo ago
Replying to
@iamdtms@mas.to Ooo, nicely done! @frontenddogma@mas.to
1
0
0
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 7mo ago

Split the text, rotate and scale it, and translate the individual characters on scroll.

Phew, definitely not for the faint of heart but it's a super cool effect!

https://css-tricks.com/spiral-scrollytelling-in-css-with-sibling-index/

Spiral Scrollytelling in CSS With sibling-index() | CSS-Tricks
CSS-Tricks

Spiral Scrollytelling in CSS With sibling-index() | CSS-Tricks

Lee accepts a challenge: arranging text in a spiral that animates as a vortex on scroll... all in CSS.

2
1
0
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 6mo ago

Front-End Fools: Top 10 April Fools’ UI Pranks of All Time

A little trip down memory lane. :)

https://css-tricks.com/front-end-april-fools-top-10/

Front-End Fools: Top 10 April Fools’ UI Pranks of All Time | CSS-Tricks
CSS-Tricks

Front-End Fools: Top 10 April Fools’ UI Pranks of All Time | CSS-Tricks

These are the historical pranks I consider the top 10 most noteworthy, rather than the “best.” You’ll see that some of them crossed the line and/or backfired.

1
0
0
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 6mo ago

Short n’ sweet but ever so neat, this issue of What’s !important covers light/dark favicons, @mixin, anchor-interpolated morphing, object-view-box, new web features, and more.

https://css-tricks.com/whats-important-8/

What’s !important #8: Light/Dark Favicons, @mixin, object-view-box, and More | CSS-Tricks
CSS-Tricks

What’s !important #8: Light/Dark Favicons, @mixin, object-view-box, and More | CSS-Tricks

Short n’ sweet but ever so neat, this issue covers light/dark favicons, @mixin, anchor-interpolated morphing, object-view-box, new web features, and more.

1
0
2
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 6mo ago

Contact forms and CRM integration is fairly easy, right? Capture data and send. It's not always as simple as that, though, especially when there are business requirements that rely on that data.

https://css-tricks.com/form-automation-tips-for-happier-user-and-clients/

Form Automation Tips for Happier User and Clients | CSS-Tricks
CSS-Tricks

Form Automation Tips for Happier User and Clients | CSS-Tricks

That gap between "the form works" and "the business works" is something we don't really tend to discuss much as front-enders. We focus a great deal on user experience, validation methods, and accessibility, yet we overlook what the data does once it leaves our control

1
0
2
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 6mo ago

No spicy takes here, just genuine interest and notes on whatever the heck "Generative UI" is supposed to be.

https://css-tricks.com/generative-ui-notes/

Generative UI Notes | CSS-Tricks
CSS-Tricks

Generative UI Notes | CSS-Tricks

Looking at research and experiments that are designed to automatically generate user interfaces based on user preferences.

1
1
1
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 7mo ago

A few wild examples of the customizable select have been floating around. Here are a few more from @patrickbrosset@mas.to that push the envelope.

https://css-tricks.com/abusing-customizable-selects/

Abusing Customizable Selects | CSS-Tricks
CSS-Tricks

Abusing Customizable Selects | CSS-Tricks

Let’s go over a few demos using the new customizable <select> feature that may be wild, but also give us a great chance to learn new things in CSS.

1
0
3
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 7mo ago

Despite what’s been a sleepy couple of weeks for new Web Platform Features, we have an issue of What’s !important that’s prrrretty jam-packed. The web community had a lot to say, it seems, so fasten your seatbelts!

https://css-tricks.com/whats-important-6/

What’s !important #6: :heading, border-shape, Truncating Text From the Middle, and More | CSS-Tricks
CSS-Tricks

What’s !important #6: :heading, border-shape, Truncating Text From the Middle, and More | CSS-Tricks

Despite what’s been a sleepy couple of weeks for new Web Platform Features, we have an issue of What’s !important that’s prrrretty jam-packed. The web community had a lot to say, it seems, so fasten your seatbelts!

1
0
0
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 7mo ago

This issue of What’s !important is dedicated to our friends in the UK, who are currently experiencing a very miserable 43-day rain streak. Presenting: the five most interesting things to read about CSS from the last couple of weeks. Plus, the latest features from Chrome 145, and anything else you might’ve missed.

TL;DR: lots of content, but also lots of rain:

https://css-tricks.com/whats-important-5/

What’s !important #5: Lazy-loading iframes, Repeating corner-shape Backgrounds, and More | CSS-Tricks
CSS-Tricks

What’s !important #5: Lazy-loading iframes, Repeating corner-shape Backgrounds, and More | CSS-Tricks

This issue of What’s !important is dedicated to our friends in the UK, who are currently experiencing a very miserable 43-day rain streak. Presenting: the five most interesting things to read about CSS from the last couple of weeks. Plus, the latest features from Chrome 145, and anything else you might’ve missed. TL;DR: lots of content, but also lots of rain.

1
0
0
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 6mo ago

For this issue of What’s !important, we have a healthy balance of old CSS that you might’ve missed and new CSS that you don’t want to miss. This includes random(), random-item(), folded corners using clip-path, backdrop-filter, font-variant-numeric: tabular-nums, the Popover API, anchored container queries, anchor positioning in general, DOOM in CSS, the customizable select element, :open, scroll-triggered animations, the toolbar element, and somehow, more.

https://css-tricks.com/whats-important-7/

What’s !important #7: random(), Folded Corners, Anchored Container Queries, and More | CSS-Tricks
CSS-Tricks

What’s !important #7: random(), Folded Corners, Anchored Container Queries, and More | CSS-Tricks

For this issue we have random(), folded clip-path corners, anchored container queries, customizable select, scroll-triggered animations, and more.

0
0
1
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 7mo ago

Lee Meyer's sane, thoroughly reported, and well-grokked explanation of the recent CVE-2026-2441 vulnerability that was labeled a "CSS exploit" that "allowed a remote attacker to execute arbitrary code inside a sandbox via a crafted HTML page."

https://css-tricks.com/an-exploit-in-css/

An Exploit ... in CSS?! | CSS-Tricks
CSS-Tricks

An Exploit ... in CSS?! | CSS-Tricks

Read an explanation of the recent CVE-2026-2441 vulnerability that was labeled a "CSS exploit" that "allowed a remote attacker to execute arbitrary code inside a sandbox via a crafted HTML page."

0
0
1
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 7mo ago

Distinguishing “Components” and “Utilities” in Tailwind by Zell Liew

https://css-tricks.com/distinguishing-components-and-utilities-in-tailwind/

Distinguishing "Components" and "Utilities" in Tailwind | CSS-Tricks
CSS-Tricks

Distinguishing "Components" and "Utilities" in Tailwind | CSS-Tricks

The distinction between "components" and "utilities" seems clear at first glance, but gets a little blurred when working with them in Tailwind.

0
0
0
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 6mo ago

Pretty sure most of us avoid !important anyway, but it's always a good reminder to revisit the alternatives... and when it might actually be good to reach for it.

https://css-tricks.com/alternatives-to-the-important-keyword/

Alternatives to the !important Keyword | CSS-Tricks
CSS-Tricks

Alternatives to the !important Keyword | CSS-Tricks

Cascade layers, specificity tricks, smarter ordering, and even some clever selector hacks can often replace !important with something cleaner, more predictable, and far less embarrassing to explain to your future self.

0
0
1
1
Open post
CSS-Tricks @csstricks@mastodon.social
· 6mo ago

A couple new column-wrapping features shipped in Chrome 145, like `column-wrap` and `column-height`.

Truly big upgrades for multi-column layouts — here's how you *might* use them... as well as when you might *not* use them.

https://css-tricks.com/css-multi-column-layout-wrapping-features/

New CSS Multi-Column Layout Features in Chrome | CSS-Tricks
CSS-Tricks

New CSS Multi-Column Layout Features in Chrome | CSS-Tricks

Chrome 145 introduces the column-height and column-wrap CSS multi-column layout properties, enabling us to wrap the additional content into a new row.

0
0
0
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 5mo ago
Replying to
@db I love that you're writing about this stuff. Seems like WordPress chatter has gone quiet in recent years and that's pretty sad, even the reasons are understandable.
0
1
0
0
Open post
CSS-Tricks @csstricks@mastodon.social
· 5mo ago
Replying to
@thany@mastodon.social @Wilto@front-end.social Right?! This one really feels like it's pole vaulting over the spirit of open web standards for corporate gains.
0
0
0
0
Back
313k7r1n3
Elektrine

Tor hidden service

elekhj7afj4qnrr4yd3bkzslsyo5jgfxw3orgjkhlcxifueodybyiiad.onion

I2P eepsite

j6b6cyk6gjmepjih7jjadxgxvvf3lzzujljuu2v4biemzpg3naya.b32.i2p

Platform

  • Email
  • Chat
  • Timeline
  • VPN
  • DNS

Company

  • About
  • Contact
  • FAQ
  • Lite (no JS)

Legal

  • Terms of Service
  • Privacy Policy
  • Transparency Report
  • Report Abuse
  • Warrant Canary
  • VPN Policy

Support

  • support@elektrine.com
  • Report Security Issue
Mail client setup IMAP mail.elektrine.com:993 POP3 mail.elektrine.com:995 SMTP mail.elektrine.com:465
© 2026 Elektrine. All rights reserved. Server: 23:44:56 UTC