Do you know the difference? pseudo-classes vs pseudo-elements

  Рет қаралды 44,379

Kevin Powell

Kevin Powell

Күн бұрын

Пікірлер: 74
@aaronbell5994
@aaronbell5994 3 жыл бұрын
Nice distinction of not selecting before the but before the text within the at 2:43.
@clevermissfox
@clevermissfox 8 ай бұрын
Had no idea ::before and ::after started with/works with one : colon. Very interesting ❤
@t20sgrunt36
@t20sgrunt36 3 жыл бұрын
Always good stuff Kevin. You're a treasure.
@danisob3633
@danisob3633 3 жыл бұрын
he is mountains of gold inside a dragon's lair. the dragon would be css
@t20sgrunt36
@t20sgrunt36 3 жыл бұрын
@@danisob3633 Codepen is the dragonlance?
@Yeasiin
@Yeasiin 3 жыл бұрын
No Doubt he is a treasure
@CarAudioInc
@CarAudioInc 3 жыл бұрын
You're one of the few webdev channels that goes in-depth with css which I love. I'm not saying that css is the answer for everything but a lot of times it is lol.
@code_blizz
@code_blizz 3 жыл бұрын
I always search KZbin to look for your tutorials. is now becoming a reference video for me, thanks a lot
@suzantamang2180
@suzantamang2180 3 жыл бұрын
i was just about google search difference between pseudo-classes and pseudo-elements and here comes kevin with solution.
@jsega996
@jsega996 3 жыл бұрын
Great explanations. I especially appreciate the way you combine conceptual knowledge with practical examples to solidify it.
@giocaonguyen
@giocaonguyen 3 жыл бұрын
I didn't know why sometime I need to use : and ::, now I know it. Thank you for ur sharing!
@djordjek3916
@djordjek3916 3 жыл бұрын
Wow Kevin! I really like this video. Very clear explanation. I learned the difference between the two and how to explain where before and after pseudo-elements are injected in the page. All these can be something anyone could be asked on a technical part of the interview for the job, so thank you very much! 🙏👍
@tanmay_gadge
@tanmay_gadge 6 ай бұрын
Thanks, this helped a lot.
@ilostonjeopardy
@ilostonjeopardy 3 жыл бұрын
That was a really great point about screen readers and accessibility 00:04:00
@matiinb
@matiinb 3 жыл бұрын
Love your channel!
@KevinPowell
@KevinPowell 3 жыл бұрын
Thank you so much 😊
@programmercouple
@programmercouple 3 жыл бұрын
Love your teaching style! Great video as usual! Thanks:)
@randomuploaderguy
@randomuploaderguy 3 жыл бұрын
Another useful video! I haven't watched the full video, but I have to ask; is there a current up-to-date list of pseudo classes and elements? Does this video go fully in-depth on all of them? If not, is there a video that fully goes in-depth on all of them? I've noticed that there seem to be ones that don't appear on Firefox's element inspector panel alongside focus and hover and such and I'd love a full knowledgebase of them all to reference.
@sharbelzoghbi1638
@sharbelzoghbi1638 Ай бұрын
youre a legend. KZbin algo, please give me more of this. Ill also take a golden ferrari but whichever
@GarebearluvsBMX
@GarebearluvsBMX 2 жыл бұрын
you have a very healthy fiddle fig! I'm impressed. I hope mine grows up just as healthy. Thanks for the vid!
@KevinPowell
@KevinPowell 2 жыл бұрын
The trick is to get a fake one 🤣 - I'm in a basement with no natural light, so it does the trick, lol.
@muhammadsiddiqui2244
@muhammadsiddiqui2244 3 жыл бұрын
As always, your video made me "happy".
@crimsonisland
@crimsonisland 3 жыл бұрын
Haha, I just googled :: vs : css because I couldn't remember which was which. I am so bad a CSS. Thanks for this!
@zachjensz
@zachjensz 3 жыл бұрын
: (That's the difference)
@dailymeow3283
@dailymeow3283 3 жыл бұрын
4:31 i've learnt a new trick
@kugi7786
@kugi7786 3 жыл бұрын
Thank you so much. It really helps a lot!!
@mdkawsarislamyeasin4040
@mdkawsarislamyeasin4040 2 жыл бұрын
I'm watching you video new a days. Now i subscribed and also pressed bell icon also Awsome Channel 🖤
@TheCocoaDaddy
@TheCocoaDaddy 3 жыл бұрын
Wow, I just learned something new! Do you have any videos on the difference between a pseudo-class that's referenced immediately after an element selector vs with a space between? For example: a:hover vs a :hover (hover might be a bad example :)). Thanks for posting this!
@wolframzell6162
@wolframzell6162 3 жыл бұрын
a:hover would trigger if you hover over the , while a :hover would trigger on child elements of when hovering over them. Like with a normal class selector a space shows that its a child.
@lukejagodzinski
@lukejagodzinski 3 жыл бұрын
I do webdev for so many years and I didn't know that there is ::first-line and ::first-letter :) Btw. at 4:40 [attr*=value] is not "starts with" but "contains" :). Starts with is ^=.
@GauravKumar-ue7nz
@GauravKumar-ue7nz 3 жыл бұрын
Thank you Kevin
@richardjoemartin
@richardjoemartin Жыл бұрын
Best explanation❤👏
@nro337
@nro337 3 жыл бұрын
This is great! Thank you!
@NNNedlog
@NNNedlog 3 жыл бұрын
You always produce quality videos at the right time. A quick question: is it possible to manipulate pseudo-elements with JavaScript
@KelseyThornton
@KelseyThornton 3 жыл бұрын
Nice explanation!
@Zen-lz1hc
@Zen-lz1hc 2 жыл бұрын
Thank you Really cool video :)
@johnsolly
@johnsolly 2 жыл бұрын
Thank you for this explanation!! I finally get it = )
@aybak3k
@aybak3k 3 жыл бұрын
in short pseudo class is a special state of elements like hover and uses only one colon ":" pseudo element is like "first-line"
@robertkovac7824
@robertkovac7824 3 жыл бұрын
Great video, came in handy for me.
@AlThePal78
@AlThePal78 Жыл бұрын
I love your shirt I use codepen for making my own snipets myself
@goodnewsjohn2482
@goodnewsjohn2482 3 жыл бұрын
wow great one sir. can you do something about stacking context or do you have one already?
@maulikthaker009
@maulikthaker009 3 жыл бұрын
good one kevin
@commentmyideas4523
@commentmyideas4523 3 жыл бұрын
Many psuedo. Come and go 👍👍👍
@sonuyadav1103
@sonuyadav1103 2 жыл бұрын
Thank you sir
@danisob3633
@danisob3633 3 жыл бұрын
0:28 Oh no... its important and ive never wondered about it. im doomed D:
@nitikaajay_vlog6712
@nitikaajay_vlog6712 3 жыл бұрын
Sir please make a video on how to add a releted post coding in blogger
@riajmazumder4434
@riajmazumder4434 3 жыл бұрын
Please some video for javascript.
@KevinPowell
@KevinPowell 3 жыл бұрын
Lots of awesome JS teachers out there already! I'll cover it from time to time when needed for something, but not my focus :)
@riajmazumder4434
@riajmazumder4434 3 жыл бұрын
@@KevinPowell sir, I just only understand your content. Their content goes above my head. I felt lucky to get a teacher like you.
@josephwong2832
@josephwong2832 3 жыл бұрын
great video but you should have shown more code examples??
@nitikaajay_vlog6712
@nitikaajay_vlog6712 3 жыл бұрын
Related post coding in sidebar menu Related post coding in post
@confidencekpodo7793
@confidencekpodo7793 2 жыл бұрын
how do you apply first of type to a content (post content) from a json file?
@matthewgilarmo9297
@matthewgilarmo9297 3 жыл бұрын
So, applying ::before and ::after to the box model, would the order be: margin, border, padding, ::before/::after, content? Am I thinking about that right?
@KevinPowell
@KevinPowell 3 жыл бұрын
well, the ::before and ::after are inside the content, technically. It's a little different too, as a border can be all 4 sides, a before or after squeezes in... well, before or after, heh. It's inside the content, and right before, or right after, whats in the HTML, if that makes sense.
@matthewgilarmo9297
@matthewgilarmo9297 3 жыл бұрын
@@KevinPowell it does! thank you! Also, saw you had a series on this after I made the comment - already started watching ... your content is always great and really helpful!
@chhavimanichoubey9437
@chhavimanichoubey9437 3 жыл бұрын
just like recursion, it was confusing to me but now it isnt.
@AfdhalAtiffTan
@AfdhalAtiffTan 3 жыл бұрын
Thanks
@KevinPowell
@KevinPowell 3 жыл бұрын
Thank you so much!
@ajayshekhawat2292
@ajayshekhawat2292 3 жыл бұрын
Good video
@KevinPowell
@KevinPowell 3 жыл бұрын
Thanks
@ЯМолодец-ъ6ш
@ЯМолодец-ъ6ш 3 жыл бұрын
Where is your telegram? I can't find a link. I mean group for your community, not personal)
@saugatnepal5956
@saugatnepal5956 11 ай бұрын
Why :first-child is a pseudo class but ::first-letter is a pseudo element?
@PoisonedPickle
@PoisonedPickle 3 жыл бұрын
4:43 i had no idea i can only select external links :"
@FarhanShaikhTheGreat
@FarhanShaikhTheGreat 3 жыл бұрын
Why don't you have caption in video ? Atleast English (auto generated) would be a good option
@Mahdi.illusion
@Mahdi.illusion 3 жыл бұрын
someone please send kevin courses link for me i cant find him thank u
@KevinPowell
@KevinPowell 3 жыл бұрын
My courses? kevinpowell.co/courses 😊
@WIBEDRILLMusic
@WIBEDRILLMusic 3 жыл бұрын
👌👌👌👌
@EAGEEYE321
@EAGEEYE321 3 жыл бұрын
#CODEPEN
@KevinPowell
@KevinPowell 3 жыл бұрын
It's in the links section of the description, if you're looking for it :)
@margueritebainbridge9281
@margueritebainbridge9281 2 жыл бұрын
No closed captioning, you talk really fast, I can not keep up. I leave here totaly confused as a beginner to CSS. Content for those familiar. I may come back later.
@vertigoz
@vertigoz 5 ай бұрын
I guess you'll get used to it, I hear him at 1,5x not a native speaker and get what he says... I speed it up, but I guess one can also speed it down
@programmercouple
@programmercouple 3 жыл бұрын
Love your teaching style! Great video as usual! Thanks:)
Three fun uses for  ::before and ::after
12:04
Kevin Powell
Рет қаралды 129 М.
My top 5 most popular front-end tips
22:07
Kevin Powell
Рет қаралды 54 М.
When u fight over the armrest
00:41
Adam W
Рет қаралды 22 МЛН
I Turned My Mom into Anxiety Mode! 😆💥 #prank #familyfun #funny
00:32
The HTML Tags They NEVER Taught You
7:39
Giodev
Рет қаралды 149 М.
The Art of Code - Dylan Beattie
1:00:49
NDC Conferences
Рет қаралды 4,7 МЛН
4 CSS PRO Rules you NEED to know
2:37
IFace
Рет қаралды 1,6 М.
The Easiest Way to Build Websites
10:56
Sajid
Рет қаралды 598 М.
CSS Anchor Is The Best New CSS Feature Since Flexbox
15:39
Web Dev Simplified
Рет қаралды 374 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 769 М.
Learn flexbox the easy way
34:04
Kevin Powell
Рет қаралды 721 М.
Always Check for the Hidden API when Web Scraping
11:50
John Watson Rooney
Рет қаралды 643 М.
10 CSS PRO Tips and Tricks you NEED to know
9:00
Coding2GO
Рет қаралды 92 М.
How you can simplify your CSS with :is()
9:20
Kevin Powell
Рет қаралды 335 М.