Modern CSS · 2 / 8
lesson 2

:has — the parent selector

Style a parent based on what is inside it. The feature CSS waited fifteen years for.

~ 15 min read·lesson 2 of 8
0 / 8

This lesson is on the way.

We're still writing the body for “:has — the parent selector”. Come back soon — or jump to the next lesson below.

← prevnext lesson →
KeepLearningcertificate
for completing
Modern CSS
0 of 8 read