Тёмный

CSS Basics (Part5) - Advanced Selectors 

DevTips
Подписаться 354 тыс.
Просмотров 101 тыс.
50% 1

Today we look at some advanced selectors.
A lot of what we cover is building upon the previous two videos where we discus basic selectors, and then properties and values. If you need too, check those out now:
Basic Selectors: • CSS Basics (Part3) - S...
Properties and Values: • CSS Basics (Part4) - P...
=========================
Basic Selectors
tag | a
class | .container
id | #main-list
========================
Selector stacking
a, strong {
color: red;
}
========================
All Selector
* {
margin: 0;
}
========================
Descendant Selector
li a {
color: red;
}
li li a {
color: red;
}
========================
Direct Descendant Selector
( youtube doesn't allow brackets in the description. )
.container (greater-than) ul {
border: 4px solid red;
}
========================
Adjacent Selector
ul + p {
color: red;
}
========================
Sibling Combinator
ul ~ p {
color: red;
}
========================
Pseudo Classes
a:hover { text-decoration: none; }
textarea:focus {border-color: blue}
========================
Put it together...
.peeka:hover + .boo {
display: block;
}
========================
nth selector
p:first-child
p:last-of-type
p:nth-child(3)
p:nth-child(odd)
p:nth-child(3n)
YAY!!!!!

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

 

24 ноя 2013

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 280   
@JustinBrooke
@JustinBrooke 8 лет назад
SRSLY... Best. CSS. Video. On. RU-vids.
@OfficialDevTips
@OfficialDevTips 8 лет назад
Spread the word :)
@jonathanhuck9918
@jonathanhuck9918 7 лет назад
DevTips and he's pretty easy on the eyes. 😏
@RAWKNtoni
@RAWKNtoni 10 лет назад
Dude. I've learned more about basic html and css selectors from this video and others than in my so-called web design certificate program. Thanks for these video Travis!
@OfficialDevTips
@OfficialDevTips 10 лет назад
That's so cool to hear RAWKNtoni I know I already told you, but I get pumped when I hear things like this!
@TheHiphopmasters
@TheHiphopmasters 9 лет назад
I'm literally taking notes. I've never done that before,especially while watching a youtube video. Thanks man:)
@OfficialDevTips
@OfficialDevTips 9 лет назад
#learning! Awesome dude. Keep that up, you will accelerate past everyone else. No lie.
@CSryand2m
@CSryand2m 8 лет назад
I didn't know you could do so much with CSS! Forget javascript for now, I need to master CSS!
@OfficialDevTips
@OfficialDevTips 10 лет назад
For you guys interested in learning/practicing more with nth-child I came across this site this site the other day which is awesome at helping to clarify this oft-cloudy concept. > nth-test.com/
@Roman-ro6fj
@Roman-ro6fj 7 лет назад
hey hi, i really like the way you learn plz teach the all pseudo elements and classes plz plz plz
@ce8084
@ce8084 4 года назад
Thank you! I just started a full stack tech school with NO previous coding experience whatsoever and hearing what I need to learn explained differently is a great help!
@extasyGH
@extasyGH 7 лет назад
wooow... really followed all your tips and tutorials on web designing and i cant thank you enough. you are awesome at making detailed descriptions in the shortest duration possible
@OfficialDevTips
@OfficialDevTips 9 лет назад
Thanks!
@jwdwsn1
@jwdwsn1 7 лет назад
That peeka boo trick has changed the way I look at web development. Everything else on here was extremely helpful as well. Great video. Thanks.
@mdshahbazali1217
@mdshahbazali1217 6 лет назад
One of the best videos I have watched for css selector.. I'm not a developer but a UI automation tester . I'm gonna use it to select elements using selenium. Thanks a lot.
@daviddaedae
@daviddaedae 9 лет назад
Dude you're such a good teacher. Your entertaining which sets you apart from those boring tutorials. You're also explaining everything perfectly.
@OfficialDevTips
@OfficialDevTips 9 лет назад
Thanks! I'm glad you liked it :)
@ouadieelamrani7546
@ouadieelamrani7546 6 лет назад
I've always found dev videos boring and made me want to sleep, you made it fun to learn, thanks for the video
@warkentien2
@warkentien2 7 лет назад
I don't know how it escaped my knowledge for so long, but I just found out about adjacent selectors. I always solved my advanced hover stuff with nested. Thanks man!
@OfficialDevTips
@OfficialDevTips 7 лет назад
yea! Glad I could help!
@TremaineBuchanan
@TremaineBuchanan 8 лет назад
Great stuff...Mind blown with creation of a tooltip!
@milfordpryce1694
@milfordpryce1694 5 лет назад
Finally a video on selocters worth liking
@rogeriorodrigues4210
@rogeriorodrigues4210 7 лет назад
Heey Travis thanks for posting this kinds of videos, your material is excellent! So much enlightening, and your enthusiasm in the videos makes things even greater!
@ragonswife
@ragonswife 6 лет назад
my mind is blown! Phenomenal - you do a amazing job explaining!
@nonamo828
@nonamo828 6 лет назад
Super cool video!!! Thanks Travis and DevTips!!! It's really helpful!
@Nomadvicky
@Nomadvicky 7 лет назад
Thanks this is the thing i am looking over the decades these pseudo selectors..... you cleared my hurdle.... thanks a lot.......
@SaraChicaD
@SaraChicaD 8 лет назад
thanks so much for this video, i'd been looking all over for a straight up explanation of how all the CSS symbols translated!! thanks!!
@TheChoofamily
@TheChoofamily 6 лет назад
Just a little bit of a refresher for me. Clear and easy to watch :). Nice job.
@ESatUCSC
@ESatUCSC 10 лет назад
WOW! these video series are SO HELPFUL, thank you! Really tied together many many loose ends!
@OfficialDevTips
@OfficialDevTips 10 лет назад
Thanks! I'm glad to hear they were helpful!!!
@strikezlc86
@strikezlc86 9 лет назад
Keep the good things coming and never stop doing tutorials :) ! Have a great day man !
@OfficialDevTips
@OfficialDevTips 9 лет назад
Strikez LC Thanks buddy :)
@yashbaxi3506
@yashbaxi3506 9 лет назад
Just amazing! Your videos are quite amazing. Thank you. Love...
@spikedavis6274
@spikedavis6274 7 лет назад
Great video. Learned several things about CSS that I did not learn in a web develop class I recent completed. Thanks Travis.
@yt_bharat
@yt_bharat 6 лет назад
Thanks a ton Travis. Always helpful these amazing videos are. May u get all the success and happiness!
@astrarai-thesobercoder
@astrarai-thesobercoder 6 лет назад
This is awesome! Thanks Travis
@infoharvester
@infoharvester 8 лет назад
fantastic videos (whole series) you're a really good teacher. Calm & funny. looking forward to watching your css videos.
@RichardCampos
@RichardCampos 8 лет назад
Nice video, man. Really nice tips, continue the work!
@vero.valencia
@vero.valencia 6 лет назад
I love that your teaching way. It is the easiest and the funnest SR.!!
@0the0ambient0
@0the0ambient0 4 года назад
Such a great overview. Thanks.
@loxy02
@loxy02 9 лет назад
Where have u been all my life? This video is much appreciated. You've opend my eyes to the wonderful wold of pseudo-selectors....Thanks a lot and Keep up the good work! :)
@OfficialDevTips
@OfficialDevTips 9 лет назад
Esther Newman you are super welcome!
@DanielHoksza
@DanielHoksza 9 лет назад
So useful, well done!
@dougkelleyjr
@dougkelleyjr 5 лет назад
Thanks! Great refresher!
@salv236
@salv236 7 лет назад
thoroughly enjoyable videos, its adding value thank you keep them coming.
@MohammadAhadX
@MohammadAhadX 6 лет назад
Nicely summed up the concept.!
@nitram_nosnibor
@nitram_nosnibor 9 лет назад
Yep definitely getting loads from your channel cheers!!!!
@OfficialDevTips
@OfficialDevTips 9 лет назад
[ ⇀ ‿ ↼ ]
@minamarcos4390
@minamarcos4390 9 лет назад
Great Job Travis. it is helpfull
@sameers2699
@sameers2699 8 лет назад
AMAZING video! We are very fortunate to have you here on RU-vid rather than UDEMY..... :) which saved me hundreds of dollars! :) THANKS A LOT TRAVIS!
@OfficialDevTips
@OfficialDevTips 8 лет назад
you are welcome!
@AlvomaniaDK
@AlvomaniaDK 7 лет назад
Very cool! well done, bro. Cheers
@bharatsinghal5919
@bharatsinghal5919 9 лет назад
Heyy thanks a ton man, just stumbled upon on your channel and found it to be the most interesting and informitive, I'm done with html basics and following your css playlist. Keep up the awesome work. P.S. Nice soundtrack ;)
@OfficialDevTips
@OfficialDevTips 9 лет назад
Thank you! I'm glad you found this helpful :)
@VladyVeselinov
@VladyVeselinov 8 лет назад
Cool stuff, dude!
@orangedroplet
@orangedroplet 8 лет назад
Thanks for this series! I feel so enlightened now about those advanced selectors. (:
@OfficialDevTips
@OfficialDevTips 8 лет назад
Fantastic, you are welcome!
@felipecid5300
@felipecid5300 9 лет назад
Your classes have been extremely useful. Awesome job man. Thanks a lot.
@OfficialDevTips
@OfficialDevTips 9 лет назад
I'm glad they are helpful!
@MediaCoastline
@MediaCoastline 6 лет назад
How does everybody else glaze over this stuff... THIS IS THE COOLEST PART OF CSS!!!
@mrs_d3n1mx28
@mrs_d3n1mx28 6 лет назад
Sam Macaluso seriously!!!
@shakt77
@shakt77 8 лет назад
A lot of these comments already said it all but here's more fuzzies for you. Kudos! great vid! well explained!!! Not just this video but others also. Thanks for sharing your knowledge
@AbhishekNigam
@AbhishekNigam 7 лет назад
Thanks for this video and the channel! You really are doing people a lot of good. Thanks again :-)
@bobbyn28
@bobbyn28 8 лет назад
awesome vid especaily the more important selector towards the end.
@OfficialDevTips
@OfficialDevTips 8 лет назад
Yea!
@rubiotv
@rubiotv 9 лет назад
DUDE totally helps. I was sooo lost with properties when i learned about it on code academy. So thanks a lot
@OfficialDevTips
@OfficialDevTips 9 лет назад
sure! totally :))
@JCMLR
@JCMLR 6 лет назад
You're funny. I love your sense of humor and eager to teach others.
@nitinkale4985
@nitinkale4985 7 лет назад
Do u know the definition of best and coolest teacher and mentor...if not...den define yourself...and u got d definition
@Youraverageprogrammer
@Youraverageprogrammer 2 года назад
The energy! 🔥
@raullimon7209
@raullimon7209 8 лет назад
you have no idea how much you are helping me:D thank you.
@OfficialDevTips
@OfficialDevTips 8 лет назад
You are welcome!! I'm glad you enjoy them :)
@sudiptamukhopadhyay8941
@sudiptamukhopadhyay8941 9 лет назад
Awesome video on css selectors.
@OfficialDevTips
@OfficialDevTips 9 лет назад
YISSS!
@adityamanjrekar3407
@adityamanjrekar3407 8 лет назад
Brilliant man! Today come to know about the Adjacent Selector and Sibling Combinator. Thanks a lot! Love the way you explains in this videos. Note this, one fan is already added in you list. :)
@OfficialDevTips
@OfficialDevTips 8 лет назад
Welcome aboard!
@achyuthroyal6489
@achyuthroyal6489 6 лет назад
you r making every tutorial interesting.your r awesome.
@MarcEPliester
@MarcEPliester 9 лет назад
Great, as always.
@OfficialDevTips
@OfficialDevTips 9 лет назад
Thanks Marc!
@benginbayrak9110
@benginbayrak9110 9 лет назад
Your videos have helped me alot, thanks dude!
@OfficialDevTips
@OfficialDevTips 9 лет назад
Bengin Bayrak You are welcome! I'm so glad to hear it. Thanks for your comment!
@satendrasingh9506
@satendrasingh9506 10 лет назад
short and very helpful. Cleared all my doubts. Thank you for such great video.
@OfficialDevTips
@OfficialDevTips 10 лет назад
Thanks for watching Satendra Singh ! I'm glad I could help. Is there anything else you want to learn about?
@ezraynaidoo9431
@ezraynaidoo9431 8 лет назад
Thanks man, really helped!
@jumpskirt
@jumpskirt 9 лет назад
Nice job!
@BrianEller-begrafx
@BrianEller-begrafx 6 лет назад
Thanks for this helpful tutorial. Clarified a lot of things that had been kinda blurry for me previously.
@oMarcos251
@oMarcos251 8 лет назад
This was actually really helpfull. I was always wondering whether I should Javascript or CSS to do those little animations, and this was very enlightening. Thanks!
@OfficialDevTips
@OfficialDevTips 8 лет назад
Awesome! Glad it was helpful :)
@femiajibade
@femiajibade 9 лет назад
You're an amazing teacher. Very cool too
@OfficialDevTips
@OfficialDevTips 9 лет назад
Thanks!!
@guillermocast01
@guillermocast01 6 лет назад
Loved it ❤️ !
@micahaldrich1914
@micahaldrich1914 4 года назад
This is a really good video but probably the most confusing one yet. Just a lot to process
@MohamedNidabdella
@MohamedNidabdella 10 лет назад
Best CSS tuts ever
@OfficialDevTips
@OfficialDevTips 10 лет назад
Thanks man, makes me feel all squishy!
@dermsain1463
@dermsain1463 7 лет назад
dude ur vids are awesome!!!
@sergiuravliuc
@sergiuravliuc 8 лет назад
Thanks Trev, ur videos are really awesome. It's especially cool that you're sharing your time and knowledge for us for free:) I'd love to have you as a mentor :D
@tiffanymclean4
@tiffanymclean4 4 года назад
great video!
@Alexandru-OM
@Alexandru-OM 6 лет назад
hello! i'm new to your channel i just want to say you inspire me to have fun and learn coding while having fun. Thank you so much for that and keep doing what you are doing
@stephs8277
@stephs8277 6 лет назад
Cool video!
@dorothymichael5170
@dorothymichael5170 7 лет назад
Great videos
@ishangoswami9462
@ishangoswami9462 5 лет назад
This is amazing
@infoharvester
@infoharvester 8 лет назад
fantastic video. I've watched your HTML5 series; t'was awesome! you're a really good teacher. Calm & funny. A student can absorb information much more effectively that way. Thank you for these videos. I hope to see more of you in the future.
@OfficialDevTips
@OfficialDevTips 8 лет назад
DMT Awesome!
@damian_lachowicz
@damian_lachowicz Год назад
Mind blowing, cutting edge tutorial 👍🙃
@kirkdawson
@kirkdawson 7 лет назад
Seriously informative...
@jakubwozniak3089
@jakubwozniak3089 7 лет назад
That CSS hover thing was cool. So much easier than JS. I think I'll specialise in CSS3 just because I have JS issues.
@RobeyLawrence
@RobeyLawrence 9 лет назад
Thank you for revealing what was behind CSS door number three!
@OfficialDevTips
@OfficialDevTips 9 лет назад
Robey Lawrence Wouldn't it be nice if it were a brand new car?
@samc3579
@samc3579 8 лет назад
Loving it... so fun and funny....
@LesserKnownAJ
@LesserKnownAJ 7 лет назад
0:30 this guy is fun to watch even the music is fun
@DonkeyRollers1
@DonkeyRollers1 10 лет назад
You sir, are awesome! Love your videos. Wish I had come by your channel, WAY sooner, but rather late than never :P .
@OfficialDevTips
@OfficialDevTips 10 лет назад
Thanks buddy! We are just getting started! See ya around!
@joytekb
@joytekb 8 лет назад
Great tutorials
@OfficialDevTips
@OfficialDevTips 8 лет назад
Thanks!!
@nahombiniam7281
@nahombiniam7281 6 лет назад
waw I saw many videos other than urs, but urs is great.
@carolyn_s
@carolyn_s 9 лет назад
Great video!!!!!
@OfficialDevTips
@OfficialDevTips 9 лет назад
Carolyn Schack Thanks!
@lukasraich6102
@lukasraich6102 9 лет назад
Which Editor do you use? I like it how it automatically update itselfs :)
@hilatoledo1
@hilatoledo1 8 лет назад
thanx alot!! that was very helpfull :)
@JoeBOU812
@JoeBOU812 10 лет назад
More skin! Man, your tips, er, DEV TIPS, are awesome. Thank you so much for sharing these videos, man.
@OfficialDevTips
@OfficialDevTips 10 лет назад
Thanks Joe Borja !! I'm glad you like em :)
@gravics
@gravics 9 лет назад
Love the ending, hilarious.
@OfficialDevTips
@OfficialDevTips 9 лет назад
gravics :D
@ElDanielsDesigns
@ElDanielsDesigns 9 лет назад
Great tip I having a issue with the hover trick when I code it for some reason when the mouse hovers over the main link the second div class flickers. would you know why that happens and how to fix it?
@ichillewellyn648
@ichillewellyn648 6 лет назад
2 + steps back from camera makes it even better! I am not taking a piss, it's really too close, check how angles and shots of news, wider than bust shot will be more comfortable. Head shots look like constant selfie.
@DsignFX
@DsignFX 9 лет назад
#travis {display:awesome;} videos
@bool2max
@bool2max 8 лет назад
Dsign FX There's no display:awesome ._.
@ernstbelar2771
@ernstbelar2771 6 лет назад
Info bomb. Nice...
@Theokondak
@Theokondak 7 лет назад
Amazing tutorial! Helped me a lot understanding selectors. Only one question, is it possible to use > operator among classes? I tried to make it work but either i do something terribly wrong or simply it doesn't work!
@BillZhao-qd7cc
@BillZhao-qd7cc 9 лет назад
I never know CSS is so awesome!!!!
@OfficialDevTips
@OfficialDevTips 9 лет назад
Welcome to the party!
@nikensss
@nikensss 7 лет назад
Damn I have to learn some CSS for my work and I feel like I found the most useful tutorial out there xdd
@MzS_92
@MzS_92 5 лет назад
Thank you
@miguelandrews4435
@miguelandrews4435 8 лет назад
great video.
@OfficialDevTips
@OfficialDevTips 8 лет назад
+Miguel Andrews Thank you!
@geeno123
@geeno123 5 лет назад
how would you get the transition property to work over that hover element? I can't seem to get it to "ease-in". it just pops up. Great tutorial by the way. Very educational!
@SivakD
@SivakD 8 лет назад
Video is well done. Thanks for that. One thing: I cannot think of a time where you'd want to use the ~ selector... I get the idea that once something happens in the flow that all following tags of some kind will change, but when would that be done in a practical example?
@OfficialDevTips
@OfficialDevTips 8 лет назад
+Sivak Games haha, I dont think Ive ever used it. :P
Далее
CSS Basics (Part6) - Specificity
8:41
Просмотров 48 тыс.
CSS Selectors - beyond the very basics
18:47
Просмотров 40 тыс.
это самое вкусное блюдо
00:12
Просмотров 1 млн
Kim bo’ldi bu qiz?
00:17
Просмотров 1,6 млн
Learn Every CSS Selector In 20 Minutes
19:38
Просмотров 438 тыс.
CSS Basics (Part8) - CSS Preprocessors
11:19
Просмотров 65 тыс.
HTML5 Basics - History of HTML (Part1)
7:45
Просмотров 115 тыс.
Learn CSS Specificity In 11 Minutes
11:26
Просмотров 94 тыс.
Avoid these 5 beginner CSS mistakes
21:38
Просмотров 71 тыс.
A new approach to container and wrapper classes
25:27
Просмотров 245 тыс.
CSS Basics (Part 7) - CSS3
7:20
Просмотров 34 тыс.
CSS Floats and Clears Explained
12:34
Просмотров 147 тыс.
The secret to mastering CSS layouts
17:11
Просмотров 267 тыс.