
ARIA in CSS
Jeremey reacting to Sara's tweet, about using selectors instead of classes when the styling you are applying is directly related to the ARIA state.
2,268 articles from CSS-Tricks.

Jeremey reacting to Sara's tweet, about using selectors instead of classes when the styling you are applying is directly related to the ARIA state.

As quickly as I can:

When you apply a CSS property to an element, there's lots of things going on under the hood. For example, let’s say we have some HTML like this:

Totally agree with David, on CSS needing a selector to know if a position: sticky; element is doing its sticky thing or not.

Okay, this is extremely neat: Josh Comeau made this great site called Operator Lookup that explains how JavaScript operators work. There are some code

Continuous Integration (CI) and Continuous Deployment (CD) are crucial development practices, especially for teams. Every project is prone to error,

Mosaic is the first browser to feature inline images, a capability that demonstrates the visual potential of the web. The first websites are experiments,

One of the arguments against the Jamstack approach for building websites is that developing features gets complex and often requires a number of other

Some baby bear thinking from Adam Silver.

localStorage can be an incredibly useful tool in creating experiences for applications, extensions, documentation, and a variety of use cases. I've personally

Animating accordions in JavaScript has been one of the most asked animations on websites. Fun fact: jQuery's slideDown() function was already available in the

monday.com is an online Work OS platform where teams create custom workflows in minutes to run their projects, processes, and everyday work.

Léonie Watson:

Here's a fun page coming from secretGeek.net. You don't normally think "fun" with brutalist minimalism but the CSS trickery that makes it work on this page is

I'm a WordPress user and, if you're anything like me, you always have two tabs open when you edit a post: one with the new fancy pants block editor, aka

Loops are one of those features that you don't need every day. But when you do, it's awfully nice that preprocessors can do it because native HTML and CSS

Daniel C. Wilson explains how with CSS @keyframe animations, when multiple of them are applied to an element, they do both work. But if any properties are

Whimsical is an app that lets you create flowcharts, wireframes, and mind maps but it was only earlier today that I spotted just how great the website is —

The <picture> element has a trick it can do where it shows different image formats in different situations. If all you are interested in is formats for

I made this neat little gray burst thing. It's nothing particularly special, especially compared to the amazing creativity on CodePen, but I figured I could

Having a semantically versioned software will help you easily maintain and communicate changes in your software. Doing this is not easy. Even after manually

I updated my personal website the other day. Always a fun project since it's one of the few where it's 100% just me. It's my own personal playground with no

Twenty-plus years ago, tables were the main way web pages were created in HTML. It gave web builders consistent control of constructing pages with some

Back in July 2020, I got an email from James0x57 (I always try to refer to people by their name, but I think I get the sense they prefer to go by screen name)

Maybe you've already heard of (or even worked with!) KendoReact. It's popped up in some of my day-to-day conversations, especially those about working with

There are so many static site generators (SSGs). It’s overwhelming trying to decide where to start. While an abundance of helpful articles may help wade

Back in August 2020, when the content-visiblity property in CSS trickled its way into Chrome browsers, Una Kravets and Vladimir Levin wrote about it and we

Imagine this scenario: You get an email from the design team. It contains a link to a high-fidelity prototype of a React app they want you to build. You click

You would think that hiding content with CSS is a straightforward and solved problem, but there are multiple solutions, each one being unique.

I recently moderated a panel at Netlify's virtual Jamstack Conf that included Netlify CEO Matt Biilman and Automattic founder Matt Mullenweg. The whole thing

I still think the Google-devised Core Web Vitals are smart. When I first got into caring about performance, it was all: reduce requests! cache things! Make

CSS Shapes is a standard that lets us create geometric shapes over floated elements that cause the inline contents — usually text — around those elements to

My path to learning CSS was a little unorthodox. I didn't start as a front-end developer. I was a Java developer. In fact, my earliest recollections of CSS

Sometimes, when you’re looking for a quick answer, it’s really useful to have an FAQ system in place, rather than waiting for someone to respond to a

This is a neat little HTML preprocessor from Giuseppe Gurgone. It has very few features, but one of them is HTML includes, which is something I continue to be

In back-end development, storage is a common part of the job. Application data is stored in databases, files in object storage, transient data in caches…

A little while back we shared the news that WooCommerce shipped a beta payments feature as part of its 4.0 release. It's a free plugin with no monthly costs

A look at using HTML preprocessors to generate HTML, particularly deeply nested HTML, which is useful for a variety of interesting browser art and experimentation.

Looks like the word "durable" is an emerging term in the world of serverless. As I understand it, it's like allowing for state in places you wouldn't normally

Last year's State of CSS Survey yielded interesting results. There's the quick adoption of features, like calc() and CSS custom properties. There's also the

The topical idea of "how to think like a front-end developer" began for me as a series of podcast interviews on ShopTalk Show. That was in preparation for a

Over on Smashing, Adebiyi Adedotun Lukman covers all these styling methods. It's in the context of Next.js, which is somewhat important as Next.js has some

Lea has some words:

A grouping of hand-selected posts from our site about Web Components. We've published a very useful article series from Caleb Williams, so that's here, but also sprinkled in some other informational and link posts on the subject.

Many forms of assistive technology use keyboard navigation to understand and take action on screen content. One way of navigating is via the Tab key. You may

Always worth repeating: all interactive elements should have a focus style. That way, a keyboard user can tell when they have moved focus to that element.

Just the other day, Jeremy Keith wrote that problems with performance work isn’t only a matter of optimization and fixing code, but also tackling people

Layoutit Grid is an interactive open source CSS Grid generator. It lets you draw your designs and see the code as you go. You can interact with the code, add

We've covered techniques before for when you want a full-width element within a constrained-width column, like an edge-to-edge image within a narrower column

Before we delve into making a realistic motion blur in CSS, it’s worth doing a quick dive into what motion blur is, so we can have a better idea of what we’re

Authentication is one of the most challenging tasks for developers just starting with GraphQL. There are a lot of technical considerations, including what ORM

Some very cool news from Netlify: Edge Handlers are in Early Access (request it here). I think these couple of lines of code do a great job in explaining what

Learn to make the ripple effect of Material Design's button component. We'll start with ES6+ JavaScript, before looking at other solutions.

When I open my local project for this very site, there is a 100% chance that I need to run this command before anything else: gulp. I set that up fresh less

Number animation, as in, imagine a number changing from 1 to 2, then 2 to 3, then 3 to 4, etc. over a specified time. Like a counter, except controlled by the

Let me show you a way I recently discovered to center a bunch of elements around what I call the pivot. I promise you that funky HTML is out of the question

This is an extended version of my essay “When front-end means full-stack” which was published in the wonderful Increment magazine put out by Stripe. It’s also something of an evolution of a couple other of my essays, “The Great Divide” and “Ooops, I guess we’re full-stack developers now.”

AWS Amplify is a collection of tools from AWS to help you build applications.

Lately I've been taking a look into designing with color (or “colour” as we spell it where I’m from in New Zealand). Looking at Adam Wathan and Steve

I think the Web Share API is very cool (here's our coverage). In a nutshell, it taps into the native sharing features on whatever platform you're on, if that