Learn CSS Units In 8 Minutes

Поделиться
HTML-код
  • Опубликовано: 25 ноя 2024

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

  • @kishoreandra
    @kishoreandra 5 лет назад +89

    For me it's Kyle who simplifies every topic he come up with....

    • @keshav2136
      @keshav2136 4 года назад +5

      That's why I've subscribed him

  • @elijah4840
    @elijah4840 4 года назад +72

    I used to think CodeDrip was the best programming youtuber, y'all both have way different styles, but man... no one beats you when it comes to your coding tutorials! Keep up the great work!

  • @rshraddha
    @rshraddha 3 года назад +4

    You are seriously one of the best teacher out here. You make everything so simplified and easy to understand. Love your videos.

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

    I saw almost 5/6 videos to understand the use of rem ,em and px. but I did not clear the difference and use case. then I got your lesson ,and now everything is clear.

  • @jrajeev85
    @jrajeev85 5 лет назад +31

    First of all, great job with the way how you make the videos. I find the explanation simpler than any other programming tutorial channels out there. One small suggestion - when you are making a tutorial about dynamic sizing or spacing, it would be better if you can resize the output window to show how the objects would transform with relevant to the window or parent. Keep up the good work. You just earned a subscriber :)

    • @WebDevSimplified
      @WebDevSimplified  5 лет назад +12

      Thank you for the feedback. That is a good idea and something I really should have done.

  • @wickediris215
    @wickediris215 Год назад +2

    I started to learn web development and the tiny tiny important concepts of CSS was very hard to understand and remember. But all your css based videos have made it easier for me! Thank you so much Kyle! Keep growing mate!

  • @josiahtobas9172
    @josiahtobas9172 5 лет назад +8

    Yooooo, this is the first video and and most straight forward tutorial on CSS units I've watched. Whatever you're doing keep it up and improve as go grow. I've always wanted to know how these units work, and this tutorial has done it in one go. Thanks a lot man. God bless you.

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

    00:20 px vs %: px is always absolute; % is based on the container
    01:48 VW | VH: View width & view heights: Always based on screen width (independent of parent).
    03:50 em | rem: em is based on the parent (local): rem uses the root size

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

    This guy is genious. I dont know how he explains everything in such an easy way

  • @husnaachakzai8221
    @husnaachakzai8221 4 года назад +1

    The most clearly and simplified explanation ever

  • @sparxdev
    @sparxdev 5 лет назад +119

    3:45 "Don't care about their parents at all" lmao

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

    very well explained. Thank you for breaking things down and making it easier to grasp, specially visually. Keep up the good work.

  • @raaghavendrahm4883
    @raaghavendrahm4883 3 года назад

    This is the crispest video on RUclips, that clarifies most of the doubts on font units. Especially, between rem and em units. Thanks a lot!!

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

    I have seen so many tutorials from folks over so many industries and yours truly stands out among them all. Thank your so much for your content!

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

    Well explained.. whenever I searched for any css topic and if I saw video from this channel than my priority is to first click on this channel...

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

    I was getting a bit of a hard time in learning the difference between these units but you explained it very well! Thank you and keep up the good work!

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

    It's Best & Concise video on units in CSS i have ever seen..
    Thanks Man !!!

  • @rongliao9255
    @rongliao9255 5 лет назад +18

    Great subject - very well explained! Thanks a lot!

  • @usama57926
    @usama57926 5 лет назад +4

    0 dislikes and 100% likes... you deserve this man......

    • @WebDevSimplified
      @WebDevSimplified  5 лет назад +2

      Thanks. Hopefully it stays that way.

    • @usama57926
      @usama57926 5 лет назад +1

      @@WebDevSimplified can you please make a video on making drop down menu in header without using Bootstrap

    • @WebDevSimplified
      @WebDevSimplified  5 лет назад +2

      @@usama57926 This is a good idea. I probably won't make the video specifically for headers only, but a video on how to make a dropdown would be fun.

    • @usama57926
      @usama57926 5 лет назад +1

      @@WebDevSimplified ok sir that video also help a lot

  • @alessandrospiridigliozzi7943
    @alessandrospiridigliozzi7943 3 года назад

    I always struggled understanding rem vs em... now I get it! thankssss!

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

    I've now got to the point with your channel where I click "Like" before I click "Play". Not been wrong yet!

  • @hamzahahmad1670
    @hamzahahmad1670 4 года назад +3

    Dude, you deserve more recognition for your hard work. Thank you for a quality video everytime

  • @Coder112
    @Coder112 5 лет назад +1

    I don’t know how I jump to ur channel but it’s coool I appreciate ur effort it’s so simple and clear then other channels here keep it up bro ur awesome 👏🏿

  • @tambolaking5383
    @tambolaking5383 5 лет назад

    Thanks. Most needed topic. Most tutorials talk about basics, while developers want deeper stuff like this one. Thanks

  • @jockerdev
    @jockerdev 4 года назад +1

    I think is important to mention, that vw and vh are relative not to the screen size but to the viewport (the square of the browser that renders the page)

  • @muyivushafiq8389
    @muyivushafiq8389 Год назад +8

    You've made life very easy for me.

  • @cosmelvillalobos6448
    @cosmelvillalobos6448 4 года назад

    hey man thanks a lot for the explanation, I am working on a project and wasn't sure which units to use, now I can see the difference and when to use it.

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

    Em is even better when using padding for buttons or text inside a box with a colored background, as the padding grows or shrinks with the font-size. e.g. : button{padding:1em 0.5em}

  • @AlvaroDiazCastro
    @AlvaroDiazCastro 5 лет назад +5

    Thanks for this A-ha moment. It's great to see the code and the browser render. So easy to understand.

  • @Kevinproducciones2
    @Kevinproducciones2 4 года назад

    You are the only person I can understand about html and css very well !!

  • @HypnotixzK
    @HypnotixzK 5 лет назад +34

    I'm a simple man. I see a new Web Dev Simplified video...I click on it...hit the like button cause I know it's already going to be good...and then start watching.

  • @Platinum989
    @Platinum989 3 года назад

    Your videos are officially my favorite on RUclips. I have to let you know, your videos are high quality, professional and concise. Keep up the good work!

  • @RACAPE
    @RACAPE 5 лет назад

    Your videos are like that cheat papers that you are using at the exam. It's so simple to pass the exam(complete a project) with the cheat papers(your videos).
    Thanks for your work!

    • @WebDevSimplified
      @WebDevSimplified  5 лет назад

      You are very welcome! I am really glad my videos are helpful for you.

  • @sylwesterjot921
    @sylwesterjot921 4 года назад

    You're one of the best (if not the best) teachers online.

  • @ВадимГеннадійович-т4к
    @ВадимГеннадійович-т4к 7 месяцев назад

    Thanks for explanation. Pure and simple 👌👌

  • @megaraph5551
    @megaraph5551 4 года назад

    I can't believe your channel name actually describes your actual content. Very easy to keep up with your tutorials, well done!

  • @zsolt_veres
    @zsolt_veres 2 года назад +64

    One small correction: When using vw and vh, it's actually the percentage of the window size, not the screen size. Great explanation otherwise, as always.

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

      yes and you can use vh in with property, that's important too

    • @abogadosasesorias8848
      @abogadosasesorias8848 2 года назад +9

      Hi bro, a question for you.. Why percentage is not as wide as vw in the example? is'nt the percentage element parent a complete block element and that said, the child shouldnt take the 50% window screen?

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

      @@abogadosasesorias8848 because in percentage one the content size is less as body has a margin of 8px given by browser so it calculates 50 % of lesser width hence less in width than that of vw which will use 50% of whole screen size and that includes margin 0f 8 px of body
      overall in simple terms due to the margin of body tag given by browser it is less

    • @JesseIniya
      @JesseIniya 17 дней назад

      But on the other hand, screen size is interchangeably window size.

  • @etinosaizekor6533
    @etinosaizekor6533 3 года назад

    I've watched different videos on size unit but this really simplified it. Great video!

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

    You explained everything in a simple way to everyone! Awesome. Now, I'm gonna be an expert at CSS, hahah

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

    Excellent, clear, and concise. Thanks so much. You are my favorite person for CSS!

  • @charlestoneoyoo
    @charlestoneoyoo 10 месяцев назад

    Thanks Kyle you just made this easy to understand

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

    Super smooth. Thank you, Kyle!

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

    Amazing as always buddy you're the one who I refer to let me check if Kyle has a video before I check anyone else

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

    clean, concise explanation

  • @christophersoo
    @christophersoo 10 месяцев назад

    Summary:
    pixels (px): absolute unit, will not change no matter what
    percentage (%): relational to its parent's container size (height, width) and will change accordingly
    em (1em = 100%): relational to its parent's font size and will change accordingly
    rem (1rem = 100%): relational to the root's (the highest-ranking parent, typically the class) font size, it only change if the root is changed, or else it will not change
    viewport height/width (vh/vw, 1vh/1vw = 1%): relational to the window's size (the whole screen except for the "tabs" section in your PC browser) and will only change if the window size changed, or else it will not change
    small viewport height/width (svh/svw, 1svh/1svw = 1%): similar to viewport height but takes into account the url UI and the toolbar UI on mobile layout
    large viewport height/width (lvh/lvw, 1lvh/1lvw = 1%): similar to viewport height but takes into account only the url UI on mobile layouts
    dynamic viewport height/width (dvh/dvw, 1dvh/1dvw = 1%): the best of both small and large viewport height. When the toolbar is gone (retracted) it becomes large viewport height. When toolbar appears (extracted) it becomes small viewport height

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

    THANK YOU , excellent explanation.............

  • @moacir8663
    @moacir8663 3 года назад +1

    Man your explanation was so cool! Ver y good job!

  • @maxiequa567
    @maxiequa567 5 лет назад

    Once again Kyle provides the best, clearly understandable explanation on an incredibly common topic.

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

    Awesome video, cleared my all doubts

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

    Great Tutorial,
    Simple and Great.
    Thanks alot, I really liked the way you explane the CSS Units.
    Please, Keep going up and best

  • @rohitrout6450
    @rohitrout6450 3 года назад

    Wow got my confusion cleared..Thanks!

  • @WalZKiller
    @WalZKiller 3 года назад

    Thank u bro, I just started learning about css and u made my life whole lot easier :D

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

    Thank you! Awesome explanation in less than 10 minutes!

  • @Gary-ji9ud
    @Gary-ji9ud 3 года назад +1

    em is not based on its parent font size, it is based on its self font size but most of time it inherits from it's parent

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

    thanks you help many self learning people

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

    thank you this really helped me understand this topic

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

    Great video! Now I have it clear. Thanks!

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

    A simple explanation. Thanks

  • @rohankumartalreja
    @rohankumartalreja 4 года назад +1

    Awesome Tutorial.
    Thank you very much brother.

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

    awesome teacher, much thanks from Morocco 🙏

  • @sakinebarati7448
    @sakinebarati7448 3 года назад

    Thanks , this tutorial like always was great ,teach easy and clear , most of the time I was confused about them BUT now ,these are completely clear for me,Thanks.🌸🌸

  • @avneetsingh3218
    @avneetsingh3218 3 года назад

    Bro explain vmin and vmax.
    U r best u really make it Smiplified

  • @sanjibroychowdhury2873
    @sanjibroychowdhury2873 5 лет назад

    Excellent job. THE best video on this rather confusing topic.

  • @dhinajd510
    @dhinajd510 3 года назад

    Your a gem ❤️💥....My confusion getting clear of this video

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

    Thanks for this easy explanation💖

  • @ほたかふくい
    @ほたかふくい 3 года назад

    I love your explanation:)
    So easy to understand compared with other teachers in my school

  • @arlentan
    @arlentan 4 года назад

    Very clear! thanks for making this

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

    I cant thank you enough, learned so much.

  • @reedZ.k
    @reedZ.k 3 года назад

    Amazing tutorials man i like every video blindly before watching keep it up !!

  • @monara97
    @monara97 3 года назад

    nailed it in 8 mins. thanks mate

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

    Thank you now i fully understand why the heck they said that em is still useful.

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

    Your videos are very useful to me, thank you very much!

  • @gravisrinivas
    @gravisrinivas 3 года назад

    All your videos are really good. Good job bro

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

    Thanks man for this amazing tutorial🙏🙏🙏

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

    This video was very helpful, thank you

  • @rushivachhani5863
    @rushivachhani5863 4 года назад

    After seeing many videos on css units, finally found a great one 👍

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

    great, simple, and to the point. Just what I needed, thank you. cx

  • @Dawid-lb8fe
    @Dawid-lb8fe 4 года назад

    I don't know name, becouse I'm new there, but you've helped me. Thank you man, I appreciate your work :)

  • @farazali8299
    @farazali8299 3 года назад

    Explained perfectly!

  • @BigSmoke-r9w
    @BigSmoke-r9w 11 месяцев назад

    im inlove with you and your tutorials

  • @quicksilva184
    @quicksilva184 3 года назад

    Excellent explanation bro! Good work!

  • @rabishankar5993
    @rabishankar5993 3 года назад

    thanks bro your videos really helps me lot.

  • @covertgravy
    @covertgravy 5 лет назад

    I am enjoying your videos very much and learning a lot as well. Found your channel when you did that collab video with Kevin Powell.

    • @WebDevSimplified
      @WebDevSimplified  5 лет назад +1

      Nice! I am hoping to do another collab with Kevin in the near future. It was a lot of fun working with him.

  • @ebayoscorner5512
    @ebayoscorner5512 4 года назад

    Well explained, thanks so much,God bless you

  • @igboman2860
    @igboman2860 4 года назад

    You are an amazing teacher young boss

  • @dmamrenko12
    @dmamrenko12 3 года назад

    Thank you this was concise and helpful.

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

    thank you ! very clearly

  • @emanuelYaish
    @emanuelYaish 4 года назад

    thanks! very simple explanation!

  • @thelonercoder5816
    @thelonercoder5816 3 года назад

    wow so easy to understand. Thank you!

  • @jithinsurendran678
    @jithinsurendran678 3 года назад

    u deserve more subscribers, man. Love from Kerala, India /\

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

    Thank you Boss... very helpful!

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

    Nicely explained, Thanks

  • @t3ntube357
    @t3ntube357 4 года назад +3

    The way you explaining in a more understandable way is very appreciative, I learned so much from you today... thanks Kyle

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

    i love your teaching style

  • @impartation330
    @impartation330 3 года назад

    Kyle, you are such an amazing teacher!

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

    Such a good explanation!

  • @petersenglish
    @petersenglish 4 года назад

    Thanks for a succinct explanation!

  • @amral-gendi5081
    @amral-gendi5081 3 года назад

    You really explained it perfectly, thank you so much Kyle

  • @Star-zf8su
    @Star-zf8su 5 лет назад

    Thanks for clear tutorial

  • @jaydipaawte2156
    @jaydipaawte2156 5 лет назад

    what a fluency man!!!!!!!!1 really good! so easy!thanks budy