HomeНаука и техникаRelated VideosMore From: Kyle Robinson Young

CSS Selector Precedence

77 ratings | 2010 views
Learn how CSS selector precedence works and hopefully reduce some frustration with CSS! Code examples from this video: https://github.com/shama/letswritecode/tree/master/css-selector-precedence
Html code for embedding videos on your blog
Text Comments (8)
Sonny O'Brien (1 month ago)
Congratulations. So well done. Especially the part about !important. Covering a topic do demonstrate and then explaining why it is not good practice is incredibly helpful. Thanks so much.
stalker (3 months ago)
Wow! Straight to business, without one hour bullshit. Amazing content! You're doing great job! Thank you.
Ngoc Pham (4 months ago)
Such a helpful video!!!! Thanks a lot
Amandeep Singh (2 years ago)
What if inline styling needs to be changed and only access provide is to CSS files and not JSP or ASP files. You should cover that as well. Otherwise this is awesome. It's one of the most informative video I've seen so far on CSS. Keep it up, and keep em coming...
Ritesh K (2 years ago)
Thanks Kyle :)
Ivan Matiishyn (3 years ago)
Does it mean that even 1000 class names in on selector cannot 'beat' selector with only one id?
Kyle Robinson Young (3 years ago)
+Ivan Matiishyn Yep. You are correct.
Studio MZK (3 years ago)
Very smart way of calculating precedence in CSS! Thanx !!!

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.