This is by far the best CSS property. I remember when I first discovered this I felt like I unlocked CSS God powers, and now I cannot imagine writing any CSS without it.
@IhsanMujdeci5 жыл бұрын
This plus flexbox
@ne98355 жыл бұрын
@@IhsanMujdeci What about CSS Grid?
@IhsanMujdeci5 жыл бұрын
@@ne9835 I sadly under utilize that property. Do you like it?
@ne98355 жыл бұрын
@@IhsanMujdeci Property? CSS Grid isn't a property or are you talking about box sizing?
@komkwam5 жыл бұрын
@@ne9835 CSS grid is quite new compare to flexbox and therefor it has less browser support.
@patatasfritasviewer4 жыл бұрын
How to resolve 2 years of CSS frustration. That should be the first property learnt in any CSS lesson
@programming8304 Жыл бұрын
I don't understand your question please 🤔
@pancakemaxita5 жыл бұрын
better explained than forums and courses! Thank you. You saved my time!
@beatzoid3 жыл бұрын
+
@Tussu173 жыл бұрын
+
@desidev693 жыл бұрын
+
@alexdoe6524 Жыл бұрын
I had trouble understanding this while reading a lesson about it so I came here and now I'm good. Thanks again for your videos, they are the best!
@sjn_5 жыл бұрын
Coincidentally, I was thinking about searching around for its purpose yesterday while trying to sleep and this video appeared this morning lol. Thanks for posting this, Kevin. You are very helpful.
@salakosunday Жыл бұрын
This is most concise video tutorial from kelvin that he did not rant. No wonder Bing search of all, suggest this to me. great one. keep it up.
@chiefplankton83072 жыл бұрын
Hey Kev! I am new to web dev and have been taking up the Odin Project for some time now. It' has been challenging to learn all these new concepts from various resources. I read all these things theoretically, understand it a little bit and then I finally come to your videos which makes it SO MUCH BETTER. I get to really understand the concept in suchha subtle way! Defo joining your patreon once I get a job on this path! :) Kudos to you, I hope you're doing good.
@capp13062 жыл бұрын
How has been you progress so far? I Just started CSS on the Odin Project.
@chiefplankton83072 жыл бұрын
@@capp1306 I finished the foundations and did 25% on the intermediate and then paused it because I wanted to learn front-end first so I switched to react. Now I got an internship at a local company for the backend on Laravel. Odin Project foundations really helped me develop the HTML, CSS, JS skills required to do the basic frontend part of web-portals. It was comparatively easy for me to learn Bootstrap/Tailwind next on advancing on commercial CSS. Well, focus on the course and build things for yourself every week. If you run into any problem ask and search alot. I know you didn't ask for advice but I did it anyway haha. Anyways, if you need help and stuff regarding the course or anything around it you can get me at ergasiamellow@gmail.com. Goodluck :)
@zaid47082 жыл бұрын
@@capp1306 im 6 months in, currently doing todo list project, if you have time, do study webpack 5 if you want to early on if you're choosing fullstack JavaScript, since that's one of the most frustrating topic you'll come across in fullstack JavaScript, but anyways odin project is pretty good, i feel confident with my skills
@capp13062 жыл бұрын
Is that a practice project? My main goal is security. My plan is to learn just front-end to make money, if I like full-stack I'll try But not now
@nataliadi92 жыл бұрын
I'm not sure I would have kept learning CSS if not your explanations that make things so much easier. Thank you for the videos, Kevin!
@jackmeister9482 Жыл бұрын
Man, there are tons of channels out there for Web development topics, you are by far THE BEST! Keep going Kevin.
@start-media2 жыл бұрын
This is by far the best (visual) explanation for box-sizing.
@sum_itt203 жыл бұрын
So far, the best explanation of this concept... I got the required visualization. Thank u for showing your mercy on us.
@lazzawhite47464 жыл бұрын
I have watched about 5 videos trying to understand this concept and I got it right away with your video. Thanks so much.
@martinmohammed40872 жыл бұрын
Basically with the default value of box-sizing: (content-box) the box will be expanded across the viewport if padding or border is included. Because those components/ parts will take part in the total width/height of the box. With box-sizing: border-box the total width/height of the box equals the specified width and height. Border and padding are not included in the total width but they reduce the inner width/height of the content. As a result the padding/border look like now they are reversed into the element (text looks shifted).
@secure_the_bags6204 жыл бұрын
Dude thank you so much. This 5 min video made more sense to me than hours and hours of reading about border-box.I just couldn't understand it for the longest time until now!
@GLHD-tl2hl Жыл бұрын
been watching your videos for no reason. Cause love the way you explaining. Cheers!
@damianduran54272 жыл бұрын
THANK YOU so much, I saw that property in a lot of vídeos but I never tried it bc i thought I'm never gonna use it but now I see how useful it is, thanks so much!
@fahanyc36385 жыл бұрын
Thanks, Kevin. You have a very pleasant voice and you explain things well! Two thumbs up!
@programmingplug95363 жыл бұрын
You're the true king of CSS, thanks a lot!
@esagecantu10 ай бұрын
Simple and straightforward explanation. Thank you.
@awhitechilliify4 жыл бұрын
Omg thank you, after watching few videos I came across this one and the penny has finally dropped, thank you so much, your visual example was the best one I saw!
@alexgochenour87406 ай бұрын
So very useful, and so concisely presented. Thank you Kevin
@samhatake3 жыл бұрын
That one bit about inherit . Super genius
@TheCocoaDaddy3 жыл бұрын
Awesome! I had never seen the 'box-sizing' property until I started seeing your tutorials. So, this explanation helps a lot! Thanks for posting!
@noodlespwn423 жыл бұрын
I watched this video with 'Call Me' by 90sFlav in the background and it was such a treat. Thanks for the content!!
@denhamk Жыл бұрын
Thank you! Didn’t realize I had to set the universal selector to box sizing as well.. I only put it in my body and html and was wondering why my divs were still expanding!! Phew. Thanks, Kevin
@josegarboza38253 жыл бұрын
Thank you so much for this video...this is one of those CSS things I never really got around to learning and you were able to explain it masterfully in 5 min. Kudos to you sir.
@TheCodeDealer4 жыл бұрын
Thanks for explaining this in a much more understandable way
@MP-mh1tu4 жыл бұрын
Best explanation I've seen so far
@smrutiranjan444410 ай бұрын
finally found one video where i totally clear my doubt . THANK YOU SIR
@Dawid-lb8fe4 жыл бұрын
It has actually changed my life today. Thank you for the explanation :)
@javieru58712 жыл бұрын
Your voice and intonation is so ASMR.
@mariodlp2 жыл бұрын
Thanks. Honestly I was feeling like an idiot for not understanding this concept but making a very visible demonstration of this solved it for me.
@m.smanoj46882 жыл бұрын
east or west kevin powell is the best for css box sizing actually confuses a lot visited many websites but this video helped me alot.
@crstfrdrnt4 жыл бұрын
you cleared the doubts codecademy planted in me in 2 minutes! you're awesome!
@MuhammadSaid013 жыл бұрын
Oh my god, I was looking for this explanation I was facing a design problem for many days now its sovled ! thank you so much
@adarshpandey29785 жыл бұрын
You are really good on picking up topics to discuss. Really helpful discussion. Thanks a lot❤️❤️❤️
@mariopizzaro2 жыл бұрын
Thanks Kevin, happy to follow your video's, learn a lot !
@hannah512382 жыл бұрын
This has actually just solved a problem I was having with a layout. Thank you sir!
@BimaAgungSaputra-gt4px Жыл бұрын
This is literally the cure of all my problem with css right now holy sh*t
@briankk83 жыл бұрын
Thanks Kevin Powell for the awesome tutorial
@x3zlo2 жыл бұрын
Great explanation in a short video! Thanks so much Kevin :D
@siriusgd47535 жыл бұрын
Truely helpful Kevin! I had a situation where I was changing attributes on a box and wasn't understanding why they weren't doing what I expected. Now I know. You are definitely worth the Patreon account. (Edited: For spelling)
@HostDotPromo5 жыл бұрын
Border box is a game changer for sure 👍
@rebelmachine885 жыл бұрын
I feel like a great weight has been lifted off my shoulders, thank you Kevin!
@yutthanayahan77845 жыл бұрын
love to see your new video, thank for sharing.
@chlouis-girardot5 жыл бұрын
Always clear and helpful. Thanks a lot Kevin!
@DragonRoyZ2 жыл бұрын
Thank you. This is simple and easy to understand.
@louisgamor4 жыл бұрын
This is awesome Kev.👍 I've always been wondering why you say it makes our lives much easier
@nawendusingh28585 жыл бұрын
best explanation on youtube.
@TheImaginativeSachin2 жыл бұрын
This was very enlighting . Thanks Kevin
@beec36945 жыл бұрын
Thank you for another great tip Kevin!
@rekan_983 жыл бұрын
I was having no idea about the box now I got to understand thanks a lot.
@busyrand5 жыл бұрын
Fantastic explanation of one of my favorite lines of code. I like the advanced practice of adding it to pseudo-elements. Never thought or heard of that practice before. The part about incorporating other code where the rule was different was nice too. I recently ran into this. Very neat presentation.
@SumanRoy.official5 жыл бұрын
Thanks for this one, I always wondered what it was, often confused.
@rick5522 Жыл бұрын
Kevin, you are awesome!
@DianaTan3 жыл бұрын
Thanks for the information. Learning CSS.
@sumitsharma67383 жыл бұрын
Box sizing border box NOW CLEAR.... Thanks!!!!
@ralexand565 жыл бұрын
Thank you, thank you, thank you! This has been driving me nuts when it came to designing full view layouts because those nasty scrollbars would pop up out of nowhere.
@nelsonR5 жыл бұрын
Precise explanation, thank you!
@asmahamdym7 ай бұрын
I use to hate CSS until I found your channel!
@oleksiipetrenko38243 жыл бұрын
Great explanation, thank you, Kevin
@owlthetyto Жыл бұрын
Absolutely on point. Awesome.
@justinlinn18105 жыл бұрын
Have been web dev for two years and feel betrayed no one has informed me of this trade secret
@KevinPowell5 жыл бұрын
Better late than never!
@MauriceLacerda04 жыл бұрын
The box-sizing: inherit is a nice trick!
@sammas5334 жыл бұрын
Really, I don't understand. I mean, in the universal selector (*) when you write "box-sizing: border-box", any "box-sizing: content-box" you write after will overwrite the "box-sizing: border-box" of the universal selector (*). That's why I don't understand why to use the inherit trick. Maybe I'm wrong. Can you explain me pls?
@jimhalpert98033 жыл бұрын
@@sammas533 because what if you have 10 divs under a container? Instead of giving all those 10 divs content-box , one could simply give their parent container the box-sizing: content-box and all those divs will inherit it. Easily reduce redundancy.
@eminm63833 жыл бұрын
one of the most useful info in 5 mins :D
@GigMyRig3 жыл бұрын
Outstanding, clear and concise explanation ✨ Thank you, Kevin.
@alulapetros60484 жыл бұрын
Best Explanation Ever !
@anuj72865 жыл бұрын
Thanks i was waiting for this video 👍
@lawrenlelko5 жыл бұрын
Top shelf, as usual!
@__jake.m2 жыл бұрын
Thank you so much! You explained it so well.
@siriusgd47535 жыл бұрын
btw... I love your video cover photos... This one with you scratching your temple looking confused... LOL!!!
@KevinPowell5 жыл бұрын
Glad you liked it :D
@Platinum9893 жыл бұрын
This video was such a help. When I am able to I am going to buy some shirts!
@Krenil.3 жыл бұрын
really helpful thanks for this amazing tutorial. 🔥
@sourabhkulkarni17313 жыл бұрын
Thank you Kevin.
@MrMinutmen1 Жыл бұрын
you teach very well, thank you so much.
@atarixle5 жыл бұрын
helped me to remove a "calc" statement, thanks!
@baabla5 жыл бұрын
Was looking for this. Thank you! Also, make a video regarding footer. How to place it at the bottom of the page when there is not enough content covering the whole viewport height between the navbar and footer.
@crousdioll5 жыл бұрын
you can use position
@baabla5 жыл бұрын
@@crousdioll I've tried position fixed which obviously scrolls with the page. I have tried position absolute, but then it doesn't stick below the content. Giving a min-height of 100% to body also didn't seem to help.
@crousdioll5 жыл бұрын
@@baabla okay see this: stackoverflow.com/questions/39794712/how-to-make-footer-go-to-bottom-when-there-isnt-enough-content-on-page
@baabla5 жыл бұрын
@@crousdioll alright will check it out. Thanks!
@Kirsehirli40able5 жыл бұрын
Wow, thank you very much for this explanation!
@shubhamkohli77193 жыл бұрын
Really helpful tutorial
@SadanandPamadi5 жыл бұрын
Very nice explained sir. Loved it
@sagormajomder2 жыл бұрын
Thank you so much. great explanation
@HowTo-nr7uk5 жыл бұрын
Thank you kevin for short and simple explanation. subscribed and liked :-)
@erykkryszewski58035 жыл бұрын
Man I beg you... Please create a tutorial about scroll efects on websites. There is nowhere good explanation of all this. Im talking about showing some objects only when we scroll to this section, any other animations that more and more websites use nowadays. It gives our static website a bit of power and interaction that makes the user feel that this is so professional :) or some kind of scrolling only between sections - when we scroll only once on mouse it still gives us another section etc (we dont have to do it manually). Please keep upvoting this post to allow Kevin see it, maybe he will help us! :) Greatings!
@KevinPowell5 жыл бұрын
I see 99% of comments (some will slip through for sure), no need to upvote :) - I've got something sort of planned for this already, but it might be awhile.
@erykkryszewski58035 жыл бұрын
@@KevinPowell thank you. if i were you i would put a bit more functionality into your movies, to make it useful on real websites. waiting for another projects, greatings!