Тёмный

CSS Child and Descendant Selectors 

Craig A. Bourne
Подписаться 11 тыс.
Просмотров 2,8 тыс.
50% 1

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@craigabourne
@craigabourne 3 года назад
Learn CSS: ru-vid.com/group/PL4cTxE4s2XIYwGURywyDlkfmhmRC5FaUR
@kajabrooks
@kajabrooks 3 года назад
You're soooo much better than kevin powell explaining CSS
@craigabourne
@craigabourne 3 года назад
Thanks! That's very kind of you to say
@aaronmoroney2066
@aaronmoroney2066 2 года назад
Thank you very much - very well put together and explained video.
@craigabourne
@craigabourne 2 года назад
Thank you! You are welcome!
@rickprohaska3949
@rickprohaska3949 2 года назад
Brilliant stuff, mate! Thanks for breaking this down to my level!
@craigabourne
@craigabourne 2 года назад
No worries! Hope it made sense!
@marinstrup
@marinstrup 3 года назад
The explanation of the burrowing down made the bulb in my head go off
@craigabourne
@craigabourne 3 года назад
Great to hear 💡
@louismulinge2993
@louismulinge2993 2 года назад
hi, great vid but quick question? do you need the class="descendant" in order for this to work? what if you do not have a class?
@craigabourne
@craigabourne 2 года назад
No definitely not. Sorry, that was just for illustrative purposes. I was just trying to illustrate which bit of code I was using to teaching which concept. The concepts of child and descendant selectors do not need classes involved at all. The selectors can be any type and the concept works the same. You could use element selectors like p > span { ... } for a span element that is a direct child of a paragraph. Or div ul { ... } for an unordered list that is a descendant at some level within a div. Hope that makes sense!
@jamesdarnel
@jamesdarnel Год назад
this is the video that comes up when i searched "child selectors css" on goggle! congrats!
@craigabourne
@craigabourne Год назад
Nice! Slowly gaining some recognition
@kjetelhallen3887
@kjetelhallen3887 3 года назад
So up to the point. Thanks for the wonderful video
@craigabourne
@craigabourne 3 года назад
Glad it was helpful!
@wandafish
@wandafish 2 года назад
So you can use all these selectors and avoid putting classes?
@craigabourne
@craigabourne 2 года назад
You asked this on another video, but will reply here to so people can see. Definitely! If you really know how to burrow down and select elements, you can avoid using class selectors all together. Not that there's anything wrong with using class selectors. It is a technique I do find useful though when working with React and a CSS library like styled-components (styled-components.com/), for example. I try to avoid needlessly adding classes to styled-component elements and so you really get to exercise your selector knowledge. Just one example I find useful. Hope that isn't confusing!
@andrew.schaeffer4032
@andrew.schaeffer4032 2 года назад
Thanks for the video. Very helpful
@craigabourne
@craigabourne 2 года назад
You’re welcome! Glad you found it helpful 👍
@createspace4368
@createspace4368 3 года назад
Thanks. Great video again
@craigabourne
@craigabourne 3 года назад
My pleasure!
@toderox
@toderox 2 года назад
Never seen a clearer explanation. Props!
@craigabourne
@craigabourne 2 года назад
Thank you! Appreciate the kind words!
@Epyonsuit
@Epyonsuit Год назад
made it so much easier for me! appreciate it allot
@privacypolicy9201
@privacypolicy9201 3 года назад
thankss :D
@craigabourne
@craigabourne 3 года назад
No problem!
@somnarchaudhary
@somnarchaudhary 3 года назад
Really helps so much. Feel so much more confident selecting nested elements
@craigabourne
@craigabourne 3 года назад
Ah that's awesome. That's why I make these videos. Glad you're finding them useful 👍
@shilohdalby8447
@shilohdalby8447 2 года назад
Love your videos, please make a css position one :)
@craigabourne
@craigabourne 2 года назад
Here you go 👉 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-rdqWoA0deuw.html
Далее
Adjacent and General Sibling Selectors in CSS
16:45
Просмотров 2,4 тыс.
CSS Specificity
23:06
Просмотров 2,1 тыс.
ОБЗОР НА ШТАНЫ от БЕЗДNA
00:59
Просмотров 371 тыс.
🦊🎀
00:16
Просмотров 415 тыс.
БЕЛКА ЗВОНИТ ДРУГУ#cat
00:20
Просмотров 705 тыс.
Ems & Rems: How to use CSS Units
13:51
Просмотров 2,4 тыс.
Understanding Inheritance in CSS
12:37
Просмотров 1,8 тыс.
CSS Selectors - beyond the very basics
18:47
Просмотров 42 тыс.
CSS Tips And Tricks I Wish I Knew Before
12:12
Просмотров 480 тыс.
How to Use CSS Pseudo-Classes
28:59
Просмотров 1,7 тыс.
100+ Web Development Things you Should Know
13:18
Просмотров 1,5 млн
Universal and Attribute Selectors in CSS
17:53
Просмотров 1,7 тыс.
Using CSS Units correctly: Pixels and Percentages
12:10
Learn CSS Subgrid in 14 minutes
14:19
Просмотров 76 тыс.
ОБЗОР НА ШТАНЫ от БЕЗДNA
00:59
Просмотров 371 тыс.