(Finally) Understanding the CSS :has Selector

preview_player
Показать описание
The :has selector is one of the most powerful CSS selectors available. Watch this video with Adi Purdila to learn how to use the :has CSS selector.

Adi will explain what the :has selector is, go through its syntax, and then explore some practical examples to show how you can use it in your web design work.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Envato Tuts+

Envato Elements
All the creative assets you need under one subscription. Customize your project by adding unique photos, fonts, graphics, and themes.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Рекомендации по теме
Комментарии
Автор

good info thanks. I was not feeling the red error styling until you did the last part of only show it when out of focus-that tied it all up for me.

Holy_Frijole
Автор

It's too good
I've also tried it

johnyjangid
Автор

How is this different from: .card img{...} - If there is no img tag inside card, the code simply will not execute

dapolcio
Автор

you nailed it!!! do you have any JavaScript course? if not, would you like to make one for beginners?

yoonesnouri
Автор

nice course, what's the name your vs-code's theme?

aumitdas
Автор

How is has selector any different than nesting?

prabinhudeomaharjan
Автор

Thanks!
Will you update your JS Course published 5 years ago or still valid?!

magnomani
Автор

Looks like :has started working in FF v121.

alexeyrak