Do You Really Understand CSS Inheritance?

Поделиться
HTML-код
  • Опубликовано: 26 июн 2024
  • FREE CSS Selector Cheat Sheet: webdevsimplified.com/specific...
    Learn CSS Today Course: courses.webdevsimplified.com/...
    Working with inheritance in CSS is hard. in this video I will be covering all the complexities of inheritance so you never have to worry again.
    📚 Materials/References:
    FREE CSS Selector Cheat Sheet: webdevsimplified.com/specific...
    Learn CSS Today Course: courses.webdevsimplified.com/...
    Fancy CSS Tricks: • 5 Must Know CSS Featur...
    Initial Vs Inherit Vs Revert Vs Unset Article: blog.webdevsimplified.com/202...
    🌎 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
    ⏱️ Timestamps:
    00:00 - Introduction
    01:03 - Initial
    04:30 - Inherit
    08:00 - Unset
    09:37 - Revert
    #CSSInheritance #WDS #CSS

Комментарии • 106

  • @arhamshahversatile
    @arhamshahversatile 2 года назад +48

    *✧ Summary*
    *● Initial*
    The actual original property value
    *● Inherit*
    The parent's property value
    *● Unset*
    Uses the parent's property value if the property is inherited else uses initial
    *● Revert*
    The property value of browser's user agent stylesheet
    *● The all CSS property*
    The all CSS property sets the same property value to every CSS property.
    I hope this is helpful
    Thank you very much

    • @MuriWolf
      @MuriWolf Год назад

      Thanks!!

    • @YTuser789
      @YTuser789 Год назад

      Thanks a million
      can you please share your notes on HTML, CSS and JAVA SCRIPT with me?

    • @technicalgamer3157
      @technicalgamer3157 4 дня назад

      NO NEED TO WATCH VIDEO🤣

  • @michellegiacalone1079
    @michellegiacalone1079 2 года назад +35

    This video is incredible. Finally, a n explainer of all the cooks in the kitchen causing all those bizarre style errors!

  • @aCitizenJOSerased
    @aCitizenJOSerased 2 года назад +5

    An in-depth explanation of the values.
    Thank you Kyle, such a great video once more!

  • @ivanwong4243
    @ivanwong4243 2 года назад +10

    Awesome, I'd been typing every single style property and abusing !important, this vid will rlly help me do better in future!

  • @bhagabatiprasad2612
    @bhagabatiprasad2612 2 года назад +4

    Literally, no one taught me the actual meaning of "inherit" value like this. Thank you, Kyle.

    • @codesymphony
      @codesymphony Год назад

      I mean it's the most self explanatory one from the name

  • @NNNedlog
    @NNNedlog 2 года назад +4

    I have been having issues using these guys. Thanks a lot Kyle. Your vids are lifesaving

  • @AnotherPersonStoppingBy
    @AnotherPersonStoppingBy 2 года назад +3

    This was incredibly informative. Thank you for all of the awesome content that you create!

  • @lucasgarcia9141
    @lucasgarcia9141 2 года назад +1

    THE TIMING. THIS IS ALL I NEEDED.

  • @ManishGupta-ww8tg
    @ManishGupta-ww8tg 2 года назад +5

    Whenever I want to understand any topic first I used to search on webdevsimplified then other channels

  • @Born2DoubleUp
    @Born2DoubleUp 2 года назад +4

    you've become one of my favorites for learning css and JavaScript more. could you do videos on php, and Ajax? 🙏

  • @bekjohansson3016
    @bekjohansson3016 2 года назад +7

    Kyle, I love the way you explain things, you and Kevin should collab a lot more together. I have learned so much from you two, I think it's time for another show down. I love those videos...

  • @takanawatrishia7296
    @takanawatrishia7296 2 года назад +3

    Omg! I wish that someone would explain me while learning. Why no one explain those things? Thanks Kyle you are doing amazing job!

  • @yagamiraito8621
    @yagamiraito8621 2 года назад

    Great video, great channel. Thank you for all your work!

  • @Taylor-hu2no
    @Taylor-hu2no 2 года назад +1

    video summary:
    There are essentially three different tiers of css:
    initial: the original settings by css specification; see formal defn in mdn
    browser styles: css styles that every browser implements to replace initial values (the *user agent stylesheet* displaying the browser's replacement styles over css initial ones)
    Finally, there is custom styling that a user replaces over the initial and browser specific styles
    These three tiers have an obvious heirarchal styling structures: initial (css reqs) -> browser (every browser's default styling rules) -> custom (user's custom styles are top level and override all)
    inherit: is a property value that, as a child, shares the same value as its parent. the child will go up the chain until it finds a parent element to inherit from.
    unset: will base itself off the initial or inherit value based properties. If the *all* property is used, then the element styling sets to initial and/or inherit; all is powerful for removing all default styles.
    revert: returns values back to initial, or can return a value(s) back to a browser's default value.

  • @MohammadrezaEmamyari
    @MohammadrezaEmamyari Год назад

    Gloden Video. Thanks a ton Kyle!

  • @RavenFelman
    @RavenFelman Год назад +1

    Very useful and clear, thank you very much! :)

  • @paschalokafor9043
    @paschalokafor9043 2 года назад

    This guy is just on another level. THANKS ALOT

  • @johnmcaulay4348
    @johnmcaulay4348 2 года назад +1

    Love your videos, thanks so much man.

  • @muhammadusman2284
    @muhammadusman2284 2 года назад +2

    Keep it up 👍 informative video for all web designers

  • @mh_kohansal
    @mh_kohansal 2 года назад

    Awesome explanation. Finally I understood Difference between these values. 🙏🙏🙏

  • @Moelgaard85
    @Moelgaard85 2 года назад

    Why i never knew about this? Amazing! Thanks 👍👍👍

  • @himbary
    @himbary 2 года назад +1

    Never heard of "all" before 🤯, awesome stuff

  • @dattaveerboda2405
    @dattaveerboda2405 2 года назад

    Great Video as always :) Kyle never disappoints

  • @AcTheMace
    @AcTheMace 2 года назад +1

    Thanks! That finally makes sense. I wish I knew this when I had my Drupal internship last summer XD

  • @arwmedia7424
    @arwmedia7424 2 года назад

    You are an excellent teacher. This video is so useful.

  • @destinlee
    @destinlee 2 года назад

    Amazing!!! Thank you good sir!!!

  • @128mtd128
    @128mtd128 Год назад

    great video about inheritance 👌

  • @emil-kirilov
    @emil-kirilov 2 года назад

    Great content!

  • @rupertxyz
    @rupertxyz 2 года назад

    Such quality content!

  • @limitlesskode
    @limitlesskode 2 года назад

    Im inspired to continue recording for my channel. Thank you Kyle

  • @AnriShahverdyan
    @AnriShahverdyan 2 месяца назад

    This guy is the best ❤

  • @mming_my
    @mming_my 2 года назад

    all:unset is awesome, thanks!

  • @JulianAndresVelaS
    @JulianAndresVelaS 2 года назад

    great explaining

  • @richcaro3132
    @richcaro3132 2 года назад +1

    Nice demo

  • @matifiordelli3886
    @matifiordelli3886 2 месяца назад

    excellent!!

  • @ajithingmire7782
    @ajithingmire7782 Год назад

    This channel is underrated

  • @pedllz
    @pedllz 2 года назад

    Great info as always! @ 2:01 you meant "inline"

  • @sudiptaghoshal4930
    @sudiptaghoshal4930 2 месяца назад

    Awesome video

  • @ggxue
    @ggxue 3 месяца назад

    great, thanks

  • @flaminggasolineinthedarkne4
    @flaminggasolineinthedarkne4 2 года назад

    good day brother this video is really helpfull.

  • @TheLittleMaestro2911
    @TheLittleMaestro2911 2 года назад

    Nice!!!

  • @Gvnrae
    @Gvnrae 2 года назад +2

    Can you make an entire react or angular series

  • @ArunKumar-yd8qi
    @ArunKumar-yd8qi 2 года назад

    Thank you Kyle 👍. Can you please make video on angular 12. Its easy for me to understand the way you explained. I hope that will be helpful for the viewers as well.

  • @sonamuhialdeen7866
    @sonamuhialdeen7866 2 года назад

    So good tutorial

  • @vasanths3780
    @vasanths3780 2 года назад

    Great...👍

  • @Human_Evolution-
    @Human_Evolution- Год назад

    all: unset; looks super useful.

  • @Lurchstavo
    @Lurchstavo 2 года назад

    I don’t fully understand this yet but I’m closer. Thank you!

  • @alvesvaren
    @alvesvaren Год назад

    You can use font: inherit on buttons too, then the size, family and weight will get inherited.

  • @whatever361
    @whatever361 Год назад

    ty so much

  • @ahmetdemir8047
    @ahmetdemir8047 Год назад

    thank you

  • @joydeepp6521
    @joydeepp6521 8 месяцев назад

    Learnt something new

  • @Zen-lz1hc
    @Zen-lz1hc 2 года назад

    Thanks

  • @Ayomikun
    @Ayomikun 2 года назад +1

    You must be a wizard, I was literally just reading an article on this yesterday, and I was shocked to read that divs aren't "really" display: block by default. I also read that display is not an inherited property, which was surprising to me. Should this not mean that children of a display: none element should not also inherit this display: none property? And thus children of a display: none element should show? Just something that I need to look into more

  • @nicopicco
    @nicopicco 2 года назад

    underrated video

  • @NedumEze
    @NedumEze 2 года назад +1

    Cheers Kyle.
    May I ask, when a user-Agent style has !important , does it have lesser effect that the custom style for same element without !important attached? In other words, can my regular style overwrite a User-Agent style with !important?

  • @devihomes
    @devihomes 4 месяца назад

    great explamations, might need to see in .5X very dense :-)

  • @ahmetkarakartal9563
    @ahmetkarakartal9563 Год назад

    THANK YOUUUUUUUUUUUUUUUU

  • @percurious
    @percurious 2 года назад +2

    Hey Kyle, great video, thanks al lot. I actually had no idea the standard sets div to display: inline. Question: How come, and how can we afford that, that we all simply work under the "knowledge" (really an assumption, actually) that each div we place on. A customers website will show up as display: block, when the onl formalize standard we have tells otherwise?
    Out of curiosity: do you happen to know, _why_ the standard does not do what everybod assumes it does?
    Thanks again, Bests!

    • @AcTheMace
      @AcTheMace 2 года назад

      I want this answered too : )

  • @Norfeldt
    @Norfeldt 2 года назад

    Very good and informative video.
    Then a full reset css should be all html elements with a "all: unset" ????

  • @beinyourguard
    @beinyourguard 2 года назад +1

    Kyle, would you think is a good practice to set all elements (*) with all:unset, just like box-sizing:border-box?

    • @percurious
      @percurious 2 года назад +1

      To add atop of that: some people like ro do it - but that seemingly also messes with div being (not) a block, right?

  • @mayankraj4763
    @mayankraj4763 2 года назад

    I just want to say "Thank You Very Much".

  • @htcsaj7876
    @htcsaj7876 2 года назад

    Great content Kyle.Can you do video on GitHub and git.How to add frontend part in angular on existing java backend project on GitHub

  • @johnmedlong55
    @johnmedlong55 2 года назад

    6:26 Ohhhhhhhhhhhhhhhhhhhhhhh, Buttons don't inherit font-family by default! Thanks for turning the light on in that scary closet.

  • @sandipansarkar9211
    @sandipansarkar9211 Год назад

    finished watching

  • @straightinsanity2840
    @straightinsanity2840 3 месяца назад

    Manthan Adhav Teaches best CSS!! 😏😏😎😎

  • @brianjett1446
    @brianjett1446 2 года назад

    Thinks. You can the other person Kevin Powell videos I'll always watch and learn from.

  • @timwilson2009
    @timwilson2009 2 года назад

    You should play your opening guitar riff on your guitar for us 😀

  • @conphynement2228
    @conphynement2228 2 года назад

    - Kyle at 0:45 So if that sounds EXCITING, make sure you subscribe to the channel ...
    - Me : Stopping and replaying the segment a couple of times, trying to figure out why he didn't say INTERESTING instead ! :-D

  • @Abhi-ow6xe
    @Abhi-ow6xe 2 года назад

    Plz make separate channel on CSS

  • @Smile__007
    @Smile__007 9 месяцев назад

  • @mahmoud-bakheet
    @mahmoud-bakheet 2 года назад

    😍

  • @cusematt23
    @cusematt23 5 месяцев назад

    kid is a fn legend. how do i donate pls. hair has helped me out SO much.

  • @ipb4isleep
    @ipb4isleep 2 года назад +1

    user-agent stylesheet

  • @iamchiranjeevin
    @iamchiranjeevin 2 года назад

    My mind blown away.. Thanks brother.

  • @webb-developer
    @webb-developer 5 месяцев назад

  • @straightinsanity2840
    @straightinsanity2840 3 месяца назад

    Manthan Adhav teaches best CSS 😏😏😎😎

  • @Akosiyawin
    @Akosiyawin 2 года назад

    Hey Web Dev Simpilified, I have a tutorial request, can you make a video on "how auto caption/subtitle works" like how youtube does it. I know how to convert speech to text, but not from video speech to text 🤣🤣🤣

  • @mepikminecraft6254
    @mepikminecraft6254 2 года назад

    hi iam in a big trouble. i am making a new website and it contains a lot of images .
    so i decided to make an image search engine for my users to easily search the image they want but i dont know how to make it.
    i searched hundreds of videos on youtube but iam not satisfied with them . pls would u make a video on this topic this will realy help me.
    pls consider this comment dont ignore it .

  • @WhoOtherThanParam
    @WhoOtherThanParam 2 года назад

    third!!

  • @brewelerbracelets8501
    @brewelerbracelets8501 2 года назад

    Second!!

  • @panu7419
    @panu7419 2 года назад +1

    First

  • @coddde8536
    @coddde8536 2 года назад

    Third

  • @khalidsaifullahfuad
    @khalidsaifullahfuad 2 года назад

    Your job is to simplify the web for us, but we don't pay you 🙄.
    .
    .
    .
    .
    .
    kidding I really love your videos 😍.

  • @coddde8536
    @coddde8536 2 года назад

    Love your videos. A heart plz

  • @hmatpin
    @hmatpin 2 года назад

    The titles of your videos are offensive. You imply that you are the only one who knows stuff when what you do is just repeat the same videos other people have done before

  • @yashwanthsrini
    @yashwanthsrini Год назад

    Thanks