Learn CSS Specificity In 11 Minutes

Sdílet
Vložit
  • čas přidán 8. 11. 2019
  • 🚨 IMPORTANT:
    Learn CSS Today Course: courses.webdevsimplified.com/...
    CSS specificity is the best and worst part of CSS. It allows you to do some incredible things with CSS especially with variables and responsive design, but when you are first starting out with CSS it is a nightmare trying to figure out how to properly overwrite styles. In this video I will be breaking down absolutely everything you need to know about CSS specificity in only 11 minutes so you can spend your time writing CSS instead of watching CZcams videos. We cover exactly what effects CSS specificity and how to calculate the specificity of a selector through the use of multiple examples so you can quickly comprehend all the complexities of CSS specificity.
    CSS Specificity Article: blog.webdevsimplified.com/202...
    🧠 Concepts Covered:
    - How to calculate CSS specificity
    - What selectors effect CSS specificity
    - How !important works with CSS specificity
    - CSS specificity best practices
    🌎 Find Me Here:
    My Blog: blog.webdevsimplified.com
    My Courses: courses.webdevsimplified.com
    Patreon: / webdevsimplified
    Twitter: / devsimplified
    Discord: / discord
    GitHub: github.com/WebDevSimplified
    CodePen: codepen.io/WebDevSimplified
    #CSS #WDS #CSSSpecificity

Komentáře • 143

  • @franksolinsky2365
    @franksolinsky2365 Před rokem +39

    Hi Kyle,
    I don't write a lot of CZcams comments, and I'm sure you'll never see this one. When I find myself consistently returning and learning from one particular CZcamsr, I always want to make a point of thanking them personally for their content and hard work. So, thank you! You are very easy to listen to, follow along with and learn from. Cheers

  • @beto.aveiga
    @beto.aveiga Před 2 lety +11

    Wow... I've been 15 years doing web development and thought I had these basics down. But I just learned that classes are more specific than tags. Also, the operators "plus" and "greater than", although they imply a more specific context, are not considered in specificity calculation. Many thanks!

  • @youpeekayey
    @youpeekayey Před 4 lety +19

    Found you like a week ago and I'm impressed by the explenation clarity. Great content, sharing is caring!

  • @Wheatleybitch
    @Wheatleybitch Před rokem +4

    You are so good at explaining things. The voice, the visuals, the pace at which you present material - I was watching another person's video on this exact topic and still did not understand the concept after the video ended. Thank you for being an awesome educator, keep it up man!

  • @ProgrammingwithPeter
    @ProgrammingwithPeter Před 4 lety +25

    You're the best, you have tutor skills, great explaining!

  • @marcwinner567
    @marcwinner567 Před 4 lety +1

    This is quality content delivered in an easy to digest way. Many thanks!

  • @yurii8710
    @yurii8710 Před 4 lety +1

    Thanks for simplifying:) good work!

  • @robertholtz
    @robertholtz Před 3 lety +1

    Outstanding explanation. Crystal clear demonstration. Really well done! 👍

  • @0the0ambient0
    @0the0ambient0 Před 4 lety +1

    Best explanation of specificity I’ve seen. Thanks!

  • @tellurmumgotohell
    @tellurmumgotohell Před rokem

    Thank you for the tutorial, your voice is very relaxing.

  • @saisanthosh8694
    @saisanthosh8694 Před 4 lety

    This is the best explanation ever! Clean and concise.

  • @pvdochtend
    @pvdochtend Před 4 lety

    Really awesome videos. I am learning so much!
    I comment about this topic is what I would expect if you have multiple styles sheets linked. What happens with those in the order. Perhaps nice to mention in a future video.
    Keep up the great work!!

  • @magdalenostrowska
    @magdalenostrowska Před 7 měsíci

    You really have a gift to teach! Thanks for your amazing content!

  • @hrithikgavankar7845
    @hrithikgavankar7845 Před 2 měsíci

    Simple and clear!

  • @KTM_Trooper
    @KTM_Trooper Před rokem +1

    w3 schools was confusing to me for some reason and this vid made me understand it much easier

  • @JasimGamer
    @JasimGamer Před 4 lety +3

    smart tip you can query things with custom attributes
    in css
    div[box]{
    width:16px;
    height:16px;
    background: #000;
    }
    or in querySelector("div[box]")
    this thing make the coding faster and easier

  • @sanjitselvan5348
    @sanjitselvan5348 Před 2 lety

    Never knew about the numbers. Thanks so much!

  • @yashpreetbathla4653
    @yashpreetbathla4653 Před 3 lety

    Such an amazing explanation thanks a ton!!!

  • @BloodyClash
    @BloodyClash Před 4 lety

    Very logical and simple exlpained. Thanks :)

  • @yvng4697
    @yvng4697 Před 7 měsíci

    I couldnt understand anything in the Odin Project but you made it so much easier, thanks!

  • @miikoa
    @miikoa Před rokem

    OMG!! I finally understand!!! Thank you!!!

  • @RNMERIA
    @RNMERIA Před 3 lety

    very well explained , thank you

  • @jasylingling5760
    @jasylingling5760 Před 4 lety

    soooooo well explained! 👏

  • @hamidRaven13
    @hamidRaven13 Před rokem

    very simple and useful tnx

  • @samandarboymurodov8941

    It is so useful. Thank you man.

  • @mohammadvempalli3973
    @mohammadvempalli3973 Před 3 lety

    Quick and great explanation 👍👌

  • @0-Elias-0
    @0-Elias-0 Před 5 dny +1

    This video is *important* ...
    ...especially for those who've learned to loathe !important
    (9:20) is particularly *important*

  • @manuelcasares7270
    @manuelcasares7270 Před 3 lety

    Amazing teaching skills, thank you

  • @sonamohialdin3376
    @sonamohialdin3376 Před rokem

    Very helpful tutorial thank you

  • @cinammondream
    @cinammondream Před rokem

    You are my new fave. Thank you.

  • @rajfromtamilnadu
    @rajfromtamilnadu Před 4 lety

    Awesome video thanks I loved it

  • @aashayamballi
    @aashayamballi Před 4 lety +4

    Thank you Kyle for making me understand this concept :)

  • @adedoyin-emmanuel-adeniyi
    @adedoyin-emmanuel-adeniyi Před 3 měsíci

    God bless you man. I totally understand now 🎉🎉

  • @dorocodes7280
    @dorocodes7280 Před 3 měsíci

    Fantastic video, I learned so much!
    Would you mind enabling captions please?

  • @darthsidious3724
    @darthsidious3724 Před 4 lety +72

    I really appreciate your content and just begging you for continue. Also, I was wandering if you would cover these specific topics:
    1) CSS box-sizing;
    2) creating fully functional custom videoplayer using HTML, CSS, JavaScript;
    3) working with HTML5 canvas (maybe make a paint-like app);
    4) working with context in JavaScript (call, apply, bind), where and when can we use that.
    It's just my suggestion, thank you a lot for what you're doing anyway.

  • @gabrielferrin
    @gabrielferrin Před 8 měsíci

    You are the best, man!

  • @hamin.gh.
    @hamin.gh. Před 2 lety

    Your explanation is great and fast. :) -

  • @hitzhangjie
    @hitzhangjie Před 3 lety

    very nice video, I understand css specificity after watching this video. Thanks.

  • @argishtib
    @argishtib Před 4 lety

    Absolutely love your videos. Wanted to learn web for a long time now, and these videos are perfect!

  • @dev20114
    @dev20114 Před 8 měsíci +1

    Thanks Man !

  • @aayush135
    @aayush135 Před 2 lety

    Amazing explanation✨✨

  • @rshraddha
    @rshraddha Před 2 lety

    And here I was using important on my styles without knowing what was going on. Seriously your tutorials are the best.

  • @drviagrin3798
    @drviagrin3798 Před 6 měsíci

    I needed this so bad. It clears up so much as to why my CSS has not been working on some elements. Again, Thank you!

  • @LifeIsGood1992
    @LifeIsGood1992 Před 4 lety

    great! keep up the good stuff !

  • @filipozbolt
    @filipozbolt Před 2 lety

    Best Web dev content provider..Great work keep up

  • @waltersumofan
    @waltersumofan Před 2 lety

    Thanks for making the topic fun instead of confusing! This reminded me of Linux chmod commands and instantly grokked into my brain. Well done.

  • @harveysagario4289
    @harveysagario4289 Před rokem

    This is great. Thank you. T

  • @breaktask7132
    @breaktask7132 Před rokem

    Awesome brother ⭐⭐

  • @jerryjeremy4038
    @jerryjeremy4038 Před 4 lety +2

    This guy is a genius in explaining complex things

  • @iHidden1
    @iHidden1 Před 4 lety +2

    This was amazing! Clearly explained, good examples, i simply loved it. Thank you for all these tutorials. Really hope you'll make more videos with concise informations that are used in day-to-day programming. Thanks once again!

    • @WebDevSimplified
      @WebDevSimplified  Před 4 lety +2

      I'm really glad you enjoyed it. Do you have any suggestions for future videos in this vein you would like?

    • @iHidden1
      @iHidden1 Před 4 lety

      @@WebDevSimplified I will surely think about some topics! Thanks for the reply!

    • @mohammedfarhaan9410
      @mohammedfarhaan9410 Před 2 lety +1

      @@iHidden1 bruh ive been waiting two yrs

  • @ahmetkarakartal9563
    @ahmetkarakartal9563 Před rokem

    amazing, thank you

  • @sudarshankj
    @sudarshankj Před 2 lety

    It was so easy to understand. Rather than explaining through all the rules, using those 4 digits was so efficient.

  • @abu-bakrmohamed1707
    @abu-bakrmohamed1707 Před 10 měsíci

    Man!, u gotta be the best instructor for web dev on youtube !

  • @dstaedeli
    @dstaedeli Před 4 lety

    awesome, thanks!

  • @halisyilmaz6967
    @halisyilmaz6967 Před rokem

    Hi, tanks a lot for clear videos. They helps me much.

  • @killeraloo3247
    @killeraloo3247 Před rokem

    Video was awesome, learned a lot. Thank you for posting it. You earned a new subscriber. ❤️ from India.

  • @sudiptaghoshal4930
    @sudiptaghoshal4930 Před rokem

    Thank you sir..😊😊

  • @sonamuhialdeen7866
    @sonamuhialdeen7866 Před 2 lety

    Very useful tutorial

  • @bama2619
    @bama2619 Před 7 měsíci

    Big thanks from Wolfsburg 42 peer... your videos help me to learn front-end.

  • @hamzaashraf9529
    @hamzaashraf9529 Před 2 lety

    Nice explaination

  • @shinichixxxx
    @shinichixxxx Před 4 lety

    It looks like scoring system.
    Thank you for the explanation.

  • @amit674698
    @amit674698 Před rokem

    you nailed it man just 2 minutes in the video I get the point

  • @muhammadusmandatascientist2077

    Really loved the way you described this phenomenon. I got this also from a book on css. But I really appreciate the effort you are putting in to teach us. Can you tell me are you doing a full-time job or part-time or youtube is your only source of income. cause I also want to work remotely.

  • @StellarWeb008
    @StellarWeb008 Před 2 lety

    He is the best web development teacher ever. He has taught all things so good that we remember the concept forever

  • @guyfromdoon
    @guyfromdoon Před 4 lety

    You r amazing Kyle.....

  • @xamdacilmi1
    @xamdacilmi1 Před 2 lety

    i applaud you thank you so much for this infromation that you have given us for free for us to learn 👍🤞👏

  • @RonaldModesitt
    @RonaldModesitt Před 3 lety

    Good succinct tutorial!

  • @ronaksingh2243
    @ronaksingh2243 Před rokem

    best explanation
    keep it up

  • @user-cw9ev9dq4v
    @user-cw9ev9dq4v Před 2 lety

    ez to understand. thanks

  • @vivekpadelkar
    @vivekpadelkar Před 2 lety

    as always thanks buddy

  • @wiksta4316
    @wiksta4316 Před 3 lety

    Thanks! I'm here for the second time and learn sth more.

  • @divyasampath2843
    @divyasampath2843 Před 2 lety

    Always end up learning something new.

  • @mesmartboy1985
    @mesmartboy1985 Před rokem

    hi i have a question: is it wrong to put inside element??

  • @adityasethi9794
    @adityasethi9794 Před 3 lety

    You're too good man

  • @rafetkrasnici1989
    @rafetkrasnici1989 Před 2 lety

    you really did simplify it.

  • @kuziwebdesign8324
    @kuziwebdesign8324 Před rokem

    I love Web Dev Simplified ♥

  • @subbu2677
    @subbu2677 Před 3 lety

    > is direct children selector not direct siblings... thanks for the video.... saves my time on specificity

  • @codeone6423
    @codeone6423 Před 2 lety

    wow thank you

  • @wiksta4316
    @wiksta4316 Před 3 lety

    I finally understood it

  • @ashimgautam4137
    @ashimgautam4137 Před rokem

    thanks

  • @fragrantbloom
    @fragrantbloom Před 2 lety

    ty

  • @acttahv1419
    @acttahv1419 Před 4 lety

    Good job

  • @kunalnanwani
    @kunalnanwani Před měsícem

    A question here,why to use different classes and ids in a single element?

  • @deansprivatearchive
    @deansprivatearchive Před 3 lety +1

    What about data selectors?

  • @guchierrez
    @guchierrez Před rokem

    you are a god

  • @puwned
    @puwned Před 4 lety

    Not surprising that nobody disliked it. Who the hell would do that?? :D
    Thanks for the simplified comprehension.

  • @mamoudgad4210
    @mamoudgad4210 Před 5 měsíci

    awesome

  • @nomoremrniceguy007
    @nomoremrniceguy007 Před 2 lety

    CSS specificity is the bane of my existence. Especially with Wordpress designs.

  • @muhammadobeidat5679
    @muhammadobeidat5679 Před 2 lety

    God bless u

  • @JoakimTveter
    @JoakimTveter Před 3 lety

    How specific are attribute selectors?

  • @lupitaquezada21
    @lupitaquezada21 Před 2 lety

    Hi, im a newbie on the web dev path and was wondering if you'd like to be friends? I'm finding your vids very useful but talking directly for specific doubts would be very helpful! and yeah, I just did subscribe to get up to date for more of your content lol

  • @nichaphatraithipphikun8098

    Yo you're a god

  • @himankgaming7555
    @himankgaming7555 Před 8 dny

    Now I k ow why I was not able to override the predefined styles of bootstrap and tailwind

  • @snehamishra6861
    @snehamishra6861 Před 3 lety

    Hey thanks for these videos it's helpful. Please on subtitles bcoz I'm from India 🇮🇳 it's difficult to understand your accent. Thank you once again ❤

  • @vertigo1196
    @vertigo1196 Před 3 lety

    I've been learning java for like the past year and the fact that you can just have random numbers right in the middle of the code and it still runs perfectly is beyond me

  • @viktorabrahamsson9303
    @viktorabrahamsson9303 Před 4 lety

    How do you comment something out? I have tried to find that shortcut but I haven't had any luck.

  • @beto.aveiga
    @beto.aveiga Před 2 lety

    The only you can rewrite an inline style is with the "!important" keyword. Also, if you have the "!important" keyword on an inline style, there is no way to overwrite it with CSS stylesheets, just using JavaScript... unless, but in the future, CSS-2050 bring us the "!super-important" keyword... hahaha! Thanks for the excellent video, BTW!

  • @fredteixeira3604
    @fredteixeira3604 Před 2 lety

    the only time I used important was to fix bugs of large legacy application where the original developers were not around anymore.

  • @syediqbalahmed3176
    @syediqbalahmed3176 Před 4 lety

    good

  • @adeshas83
    @adeshas83 Před 4 lety

    does this apply to all browsers?

    • @trappedcat3615
      @trappedcat3615 Před 4 lety +2

      Yes, specificity it's part of the original CSS spec. But, not all attribute and pseudo selectors work in every archaic browser version. Id, class, and element selectors are fine.