Тёмный

CSS Pseudo-Classes vs Pseudo-Elements | Pseudo-Selectors Tutorial 

Dave Gray
Подписаться 341 тыс.
Просмотров 14 тыс.
50% 1

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

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 26   
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 года назад
Both pseudo-classes and pseudo-elements can be very confusing for CSS beginners. However, once you learn more about them, they are easy to apply and very useful! In this tutorial, we look at both pseudo-classes and pseudo-elements, compare their differences, and learn how to apply them to a web page. If you are just starting with CSS, I recommend going to the beginniners of this CSS for Beginners playlist: ru-vid.com/group/PL0Zuz27SZ-6Mx9fd9elt80G1bPcySmWit
@judeleon8485
@judeleon8485 2 года назад
Thanks so much Dave. You actually cleared the confusion that I have been battling with
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 года назад
Glad to hear it, Jude! 💯
@NedumEze
@NedumEze 2 года назад
Always inspiring and may I even add, thrilling, watching your videos. Something new, and helpful always. Thanks, Gray.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 года назад
Thank you for the kind words, Adolf! 🙏💯
@mohamedabdelrazig6920
@mohamedabdelrazig6920 2 года назад
Hi Dave can you kindly cover the ::before and ::after pseudo elements, love the tutorials keep it up :)!!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 года назад
Hi Mohamed - I do cover both of those pseudo elements in this video 💯
@mohamedabdelrazig6920
@mohamedabdelrazig6920 2 года назад
@@DaveGrayTeachesCode You are amazing!!! my apologies only saw the chapter names 😔
@Grihlo
@Grihlo 2 года назад
Thank you for another video-lesson!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 года назад
You're welcome! 💯
@andromilk2634
@andromilk2634 2 месяца назад
When you say .card p::before or .card p::after, am I right in my understanding that for pseudo-elements, their immediate parent are considered to be "p"?
@ahmad-murery
@ahmad-murery 2 года назад
I wasn't aware of :is, :where and :any pseudo classes 🤦‍♂ the cool thing about :first-line pseudo element is that is always selects the first line even when it wraps to a multiple lines, Thanks Dave, soon you'll hit the 50K subs, Congrats in advance (just in case I missed the event)🎉
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 года назад
You're so kind, Ahmad 🙏 Thank you for joining me on this journey, my friend! 🚀
@ahmad-murery
@ahmad-murery 2 года назад
@@DaveGrayTeachesCode My pleasure my friend, you're so generous to put all this good stuff for free.
@homail227
@homail227 Год назад
@@ahmad-murery are you from Pakistan
@ahmad-murery
@ahmad-murery Год назад
@@homail227 No, I'm from Syria
@vladimirshnyakin4334
@vladimirshnyakin4334 Год назад
Hey, Dave! I learn CSS from you. Amazing lessons. I like your teaching technique. I follow you on my VSCode and I noticed that paragraph and quotes go over the nav element if you scroll all the way down. You can see it at the last seconds of this lesson. I suspect ::before and ::after have some kind of layer to them, something like z-index. Should we use something else to avoid this or make some change to nav?
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
I would need to go back and review to give you a specific fix, but in general, you are correct that z-index will impact what is on top. Apply a larger number value to whatever you want on top.
@min0234
@min0234 2 года назад
Thanks for the video! Can I ask which extension you use for the bracket line highlight??
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 года назад
I previously used the VS Code extension Bracket Pair Colorizer 2, but now, it has native support in VS Code with no extension needed - and that is what you see in this video. Link: digitaldrummerj.me/vscode-bracket-pair-colorization/
@stanislavaksenov1700
@stanislavaksenov1700 Год назад
Is it allowed to replace :is(a:hover, a:focus) with a:is(:hover, :focus) to make it even shorter?
@DaveGrayTeachesCode
@DaveGrayTeachesCode Год назад
Yes, that is a good way to do it! 💯
@morningstar330
@morningstar330 2 года назад
Can you please upload a react native course for beginners ❤️
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 года назад
I want to do this in the future, and thank you for the request! 🙏🚀
@multihyphsa5355
@multihyphsa5355 11 месяцев назад
🎉
@9nikolov
@9nikolov 8 месяцев назад
400th like 😀
Далее
Help Me Celebrate! 😍🙏
00:35
Просмотров 10 млн
Learn Every CSS Selector In 20 Minutes
19:38
Просмотров 451 тыс.
CSS Pseudo Classes and Elements Tutorial
10:18
Просмотров 11 тыс.
When to Use CSS Classes vs Ids
16:07
Просмотров 11 тыс.
Learn CSS Pseudo Elements In 8 Minutes
7:50
Просмотров 257 тыс.
CSS Units & Sizes Tutorial for Beginners
21:25
Просмотров 36 тыс.
CSS Grid Intro and Basic Layout Tutorial for Beginners
25:38