Mastering the CSS Box Model

  Рет қаралды 4,163

Craig A. Bourne

Craig A. Bourne

Күн бұрын

Пікірлер: 38
@craigabourne
@craigabourne 3 жыл бұрын
Learn CSS: kzbin.info/aero/PL4cTxE4s2XIYwGURywyDlkfmhmRC5FaUR
@rianfirth
@rianfirth 2 жыл бұрын
This is the easiest explanation of these properties I've seen yet. Thanks for this.
@craigabourne
@craigabourne 2 жыл бұрын
Thanks! Appreciate the kind words
@MrB66he
@MrB66he 3 жыл бұрын
So good to see you back Craig hope you're well! Can't thank you enough for your brilliant content, it's been so helpful and inspiring so thank you!
@craigabourne
@craigabourne 3 жыл бұрын
Thank you! I'm great, hope you are well too. Glad to hear you're finding the content useful. Plenty more on the way and a website with articles, projects and challenges is slowly coming together too 👍
@dominicomeke1586
@dominicomeke1586 2 жыл бұрын
Highly recommendable, I see box-model in a whole different light now. This was really needed 👍🏽
@craigabourne
@craigabourne 2 жыл бұрын
Great to hear! Thanks for the kind words Dominic
@fintanpate5977
@fintanpate5977 2 жыл бұрын
This is the video to learn box model. Best one I have seen
@craigabourne
@craigabourne 2 жыл бұрын
Wow, thanks! Appreciate it 👍
@ericrosales8847
@ericrosales8847 2 жыл бұрын
This video is a classic. Anyone learning CSS needs to watch this.
@craigabourne
@craigabourne 2 жыл бұрын
Thank you! Appreciate it 🔥
@jamesdarnel
@jamesdarnel 3 жыл бұрын
Another Great Vid!! Cant wait for more!!
@craigabourne
@craigabourne 3 жыл бұрын
More to come!
@somnarchaudhary
@somnarchaudhary 3 жыл бұрын
Thank you for your videos!! Today I got inline vs inline-block for the first time. Your videos mean a lot.
@craigabourne
@craigabourne 3 жыл бұрын
That's good to hear! Thanks!
@jamesdarnel
@jamesdarnel 2 жыл бұрын
Everyone i know loves your vids man. Hope the extra views help!
@craigabourne
@craigabourne 2 жыл бұрын
Thanks James! Appreciate it. New vid dropping tomorrow
@jamesdarnel
@jamesdarnel 2 жыл бұрын
@@craigabourne word
@mohammadhasan8457
@mohammadhasan8457 3 жыл бұрын
I really appreciate your video. It has helped me to understand the concept of the box model. I would like to request you to make a video on CSS flexbox and grid. Thanks
@craigabourne
@craigabourne 3 жыл бұрын
Absolutely! Flex and Grid videos on their way in the very near future
@yannickyannick3317
@yannickyannick3317 2 жыл бұрын
You're doing amazing work with these videos. Can you make a video explaining flex box?
@craigabourne
@craigabourne Жыл бұрын
Absolutely. It's the next video I'm doing. Coming soon. Next few weeks hopefully!
@yannickyannick3317
@yannickyannick3317 Жыл бұрын
@@craigabourne Can't wait!
@mixall.coding4
@mixall.coding4 2 жыл бұрын
Nice
@craigabourne
@craigabourne 2 жыл бұрын
Thanks
@davidbreitner
@davidbreitner 3 жыл бұрын
I’m doing a CSS course right now and this was SO DAMN HELPFUL!! Thank you so much
@craigabourne
@craigabourne 3 жыл бұрын
You're welcome!
@sophiawokoma3711
@sophiawokoma3711 2 жыл бұрын
so when would you actually want to use( box-sizing:content-box) since it seems to give you that weird effect ?? thank youu
@sophiawokoma3711
@sophiawokoma3711 2 жыл бұрын
and also if i wanted the content box to still have the original 302 px width and 200 px height but as the box-sixing:border-radius property now changes the content's sizing how would I go about rectifying that ? would i have to make the content box to be bigger than 302 px width , 200 px height before adding the box sizing property so that it counteracts this effect . but then how would i calculate the size I would need it to be for it to have those exact measurements?? is that possible /makes any sense ?Sorry for bombarding you lool
@craigabourne
@craigabourne 2 жыл бұрын
box-sizing: content box; is kind of the original default setting for CSS. They have to include it as an option for older, legacy sites that are using it. I can't think of a reason to use it in the present, with modern sites as it can lead to inaccuracies.
@craigabourne
@craigabourne 2 жыл бұрын
That's ok! Bombard away! Width and height values apply to the element's content only with box-sizing: content-box. So the border is added to the outside of the box. So you need to take the border into account as it will add height and width. If using border-box, and you want to element's content to keep the size, yes you would have to add the border width to the height and width. But it would just be better to use content-box in this case as this is essentially what you would be replicating. Sorry for the late replies btw. I've had Covid unfortunately so have been out of action.
@thirty3843
@thirty3843 Жыл бұрын
Great format ...wonderful and very understandable presentation.... thank you sir
@craigabourne
@craigabourne Жыл бұрын
Thank you! Appreciate the kind words 😊
@dobrilofotis
@dobrilofotis Жыл бұрын
Great video. Underrated channel
@craigabourne
@craigabourne Жыл бұрын
Thank you! Appreciate the kind words.
@LudmilaUcelniece
@LudmilaUcelniece Жыл бұрын
Great teaching session. I am doing the course in the college and the teacher has not explained this part properly so it is a brilliant teaching resource for me. Thank you very much.
@cliffordpaul6086
@cliffordpaul6086 2 жыл бұрын
This has been the best explanation I’ve seen yet. Thank you so much and good job!
@craigabourne
@craigabourne 2 жыл бұрын
Thanks! You're very welcome!
Understanding the CSS Display Property - block, inline, & inline-block
10:17
CSS Specificity
23:06
Craig A. Bourne
Рет қаралды 2,1 М.
Do you choose Inside Out 2 or The Amazing World of Gumball? 🤔
00:19
From Small To Giant Pop Corn #katebrush #funny #shorts
00:17
Kate Brush
Рет қаралды 69 МЛН
The 6 most important CSS concepts for beginners
28:58
Kevin Powell
Рет қаралды 156 М.
Master The All Important CSS Box Model - Colt's Code Camp
42:43
Colt Steele
Рет қаралды 42 М.
Ems & Rems: How to use CSS Units
13:51
Craig A. Bourne
Рет қаралды 2,4 М.
Learn CSS BOX MODEL - With Real World Examples
17:45
Slaying The Dragon
Рет қаралды 124 М.
10 CSS Pro Tips - Code this, NOT that!
9:39
Fireship
Рет қаралды 2,2 МЛН
CSS Box Model Tutorial for Beginners
25:56
Dave Gray
Рет қаралды 42 М.
Adjacent and General Sibling Selectors in CSS
16:45
Craig A. Bourne
Рет қаралды 2,4 М.
Do you choose Inside Out 2 or The Amazing World of Gumball? 🤔
00:19