CSS Tutorial For Beginners 22 - First & Last of Type Selectors

preview_player
Показать описание
Yo ninjas, I'm back with another CSS tutorial for beginners, and in this lesson I'll be explaining exactly what the heck a first & last of type pseudo class is. We can uses first and last of type selectors when first-child and last-child just don't cut it, and so we don't have to go filling our code with worthless junky classes that make no sense whatsoever. Chill, peace, fun & keep coding my friends :).

========== CSS for Beginners Playlist ==========

========== HTML Basics Course ==========

========== The Net Ninja ============

========== Social Links ==========

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

I wondered why you have used many sub topics rather than single topic like selectors but these short topic of each one's separately makes me watch it rather getting bored by an hour long single video. You're Genius Man!!

arvindk
Автор

OMG I never understood this until you explained it . Thank you !!!

westfield
Автор

So it's only for backup if using last/last-child is not working, am I right?

arlandwi
Автор

If we are selecting | article p:first-child | which means first child of article ....which is p & here |article p:first-of-type| which means first of it's type ....then what is the need to write p in |article p:first-child| Shouldn't it be selecting whatever element which is first type??? Lil Confused here...

ashRAFKSALIM
Автор

I feel like I won't remember all of these selectors but anyway great tutorials!

michi
Автор

amazing videos! However after this video and the last, I cant understand why we would ever use article p:first-child ? Because it seems just using article p:first-of-type will do the same trick? first-of-type works all the time, regardless of whether the p is the first-child or not Doesnt this just make first-child unnecessary?

bilalhussain
Автор

Is first-last-child and first-last-type are same ??

kumaresanl
Автор

Master ninja, for sake of change, make video series about other kind of programming languages. I mean like .Net family languages, C# or .... I will grateful if you do that!

RameenFallschirmjager
Автор

So what if I had a situation when I only wanted the first p tag of the first article affected. Not both first P’s of both articles. Thank you

westfield