CSS Tricks

Demystifying Screen Readers: Accessible Forms & Best Practices

Chris DeMars |
This is the 3rd post in a small series we did on form accessibility. If you missed the second post, check out “Managing User Focus with :focus-visible“. In this post we are going to look at using a … Demystifying Screen Readers: Accessible Forms & Best Practices originally published on CSS-Tri... read more

Managing User Focus with :focus-visible

Chris DeMars |
This is going to be the 2nd post in a small series we are doing on form accessibility. If you missed the first post, check out Accessible Forms with Pseudo Classes. In this post we are going to look … Managing User Focus with :focus-visible originally published on CSS-Tricks, which is part of the ... read more

The Power of :has() in CSS

Chris DeMars |
Hey all you wonderful developers out there! In this post we are going to explore the use of :has() in your next web project. :has() is relatively newish but has gained popularity in the front end community by delivering control … The Power of :has() in CSS originally published on CSS-Tricks, which... read more

Accessible Forms with Pseudo Classes

Chris DeMars |
Hey all you wonderful developers out there! In this post, I am going to take you through creating a simple contact form using semantic HTML and an awesome CSS pseudo class known as :focus-within. The :focus-within class allows for … Accessible Forms with Pseudo Classes originally published on CSS-... read more

Passkeys: What the Heck and Why?

Neal Fennimore |
These things called passkeys sure are making the rounds these days. They were a main attraction at W3C TPAC 2022, gained support in Safari 16, are finding their way into macOS and iOS, and are slated to … Passkeys: What the Heck and Why? originally published on CSS-Tricks, which is part of the Dig... read more

Some Cross-Browser DevTools Features You Might Not Know

Pankaj Parashar |
I spend a lot of time in DevTools, and I’m sure you do too. Sometimes I even bounce between them, especially when I’m debugging cross-browser issues. DevTools is a lot like browsers themselves — not all of the features in … Some Cross-Browser DevTools Features You Might Not Know originally publish... read more

Making Calendars With Accessibility and Internationalization in Mind

Mads Stoumann |
Doing a quick search here on CSS-Tricks shows just how many different ways there are to approach calendars. Some show how CSS Grid can create the layout efficiently. Some attempt to bring actual data into the mix. Some … Making Calendars With Accessibility and Internationalization in Mind original... read more

5 Mistakes I Made When Starting My First React Project

Richard Oliver Bray |
You know what it’s like to pick up a new language or framework. Sometimes there’s great documentation to help you find your way through it. But even the best documentation doesn’t cover absolutely everything. And when you work with something … 5 Mistakes I Made When Starting My First React Project... read more

Creating a Clock with the New CSS sin() and cos() Trigonometry Functions

Mads Stoumann |
CSS trigonometry functions are here! Well, they are if you’re using the latest versions of Firefox and Safari, that is. Having this sort of mathematical power in CSS opens up a whole bunch of possibilities. In this tutorial, I thought … Creating a Clock with the New CSS sin() and cos() Trigonometr... read more

Managing Fonts in WordPress Block Themes

Ganesh Dahal |
Fonts are a defining characteristic of the design of any site. That includes WordPress themes, where it’s common for theme developers to integrate a service like Google Fonts into the WordPress Customizer settings for a “classic” PHP-based theme. That hasn’t … Managing Fonts in WordPress Block The... read more