The CSS Box Model Explained in 5 Minutes!

preview_player
Показать описание
The CSS Box Model Explained in 5 Minutes!

The CSS Box Model is the most foundational and fundamental concept in all of CSS. Understanding it will allow you to create layouts in your webpage more easily and in a way that makes sense. Not understanding it will cause you to waste time you shouldn't need to laying out your elements and likely cause your CSS to be harder to understand.

In short, every element is rendered on a web page as a box. This box consists of four areas:

1. Content
This is where the content of the element lives. (Text, nested elements). Width and height properties apply to the content area by default.

2. Padding
This is the spacing between the content and the element's border. It can give breathing room to the content within your element.

3. Border
This is the (sometimes) visual divider around your element. It is still included as a part of your element.

4. Margin
This is the spacing around your element. It determines the distance between your elements and others around it. Watch out! There's an important "gotchya!" here... make sure you check the video to hear it!
Рекомендации по теме
Комментарии
Автор

My right ear feels lonely .... great tutorial man! Thank you

newmagicfilms
Автор

You just explained 3h of studying in 5min. Easy to understand and great to re-visit

ryannorris
Автор

These videos are great and explain things quick and simple. Only recommendation is to go back and refilm them in 1080p or 4k since its just a screen recording. Kind of hard to read text even on an expensive curved monitor. Thanks

Shmack_
Автор

why did you quite this job? your content is really awesome. please come back

kabirsumn
Автор

Great tutorial, but would really love if the audio wasn't mono to just the left

uffrhou
Автор

THANK YOU SO MUCH FOR THIS just subbed and liked the video :D

wcris
Автор

Keep using the house/property analogy throughout the video. That was a good visual. (Literally just started CSS 3 days ago.) Thanks.

frankcraven
Автор

You explained really well. Please make a video on "folder path" .

qandeelmya
Автор

Great Stuff. It's a little hard to see the detail. It would be helpful if you could provide a link to the html and css files so we can make changes as you make them.

michaeleichner
Автор

superb keep uploading tutorials regularly

shubhamarora
Автор

Can we say that margin collapse means that whenever two margins are touching the bigger value one of them has, the more likely it's the one that will be displayed?

G-Musically
Автор

Btw is there any group that. You have on discord that we can join?

G-Musically
Автор

I was hearing this video with an earphone thats right side is corrupted.

unknownhuman