Skip to main content
CSS-Tricks
  • Articles
  • Videos
  • Almanac
  • Newsletter
  • Guides
  • DigitalOcean
  • DO Community
Search

Articles Tagged
pseudo classes

5 Articles
{
,

}
Direct link to the article Chromium spelling and grammar features
pseudo classes

Chromium spelling and grammar features

Direct Link

Delan Azabani digs into the (hopefully) coming soon ::spelling-error and ::grammar-error pseudo selectors in CSS. Design control is always nice. Hey, if we can style scrollbars and style selected text, why not this?

The squiggly lines that indicate possible spelling or grammar errors

…
Avatar of Chris Coyier
Shared by Chris Coyier on Jun 29, 2021 (Updated on Dec 28, 2021)
Direct link to the article :nth-child Between Two Fixed Indexes
nth-child pseudo classes

:nth-child Between Two Fixed Indexes

I needed to select some elements between two fixed indexes the other day — like literally the second through fifth elements. Ironically, I have a whole post on “Useful :nth-child Recipes” but this wasn’t one of them.

The answer, it …

Avatar of Chris Coyier
Chris Coyier on Jun 29, 2021
Direct link to the article Custom State Pseudo-Classes in Chrome
chrome pseudo classes

Custom State Pseudo-Classes in Chrome

There is an increasing number of “custom” features on the web platform. We have custom properties (--my-property), custom elements (<my-element>), and custom events (new CustomEvent('myEvent')). At one point, we might even get custom media …

Avatar of Šime Vidas
Šime Vidas on May 6, 2021
Direct link to the article CSS :is() and :where() are coming to browsers
:is :where pseudo classes

CSS :is() and :where() are coming to browsers

Direct Link

Šime Vidas with the lowdown on what these pseudo-selectors are and why they will be useful:

  • :is() is to reduce repetition¹ of parts of comma-separated selectors.
  • :where() is the same, but nothing inside it affects specificity. The example of
…
Avatar of Chris Coyier
Shared by Chris Coyier on Jun 10, 2020
pseudo classes selectors

Meet the Pseudo Class Selectors

Pseudo class selectors are CSS selectors with a colon preceding them. You are probably very familiar with a few of them. Like hover:

a:hover {
  /* Yep, hover is a pseudo class */
}

They are immensely useful in a …

Avatar of Chris Coyier
Chris Coyier on Mar 17, 2010 (Updated on Feb 4, 2022)

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • DigitalOcean
  • DigitalOcean Community
  • About DigitalOcean
  • Legal
  • Agency Coaching
  • Free Credit Offer
CSS-Tricks
  • Email
  • Guest Writing
  • Book
  • Advertising
Follow
  • Mastodon
  • Twitter
  • Instagram
  • YouTube
  • CodePen
  • iTunes
  • RSS
Back to Top