The CSS Box Model Explained in 5 Minutes!

  Рет қаралды 14,972

5-Minute Web Dev

5-Minute Web Dev

Күн бұрын

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!

Пікірлер: 18
@newmagicfilms
@newmagicfilms 4 жыл бұрын
My right ear feels lonely .... great tutorial man! Thank you
@Shmack_
@Shmack_ 2 жыл бұрын
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
@ryannorris35
@ryannorris35 6 жыл бұрын
You just explained 3h of studying in 5min. Easy to understand and great to re-visit
@chickenballs-balls
@chickenballs-balls 6 жыл бұрын
cool format dude
@kabirsumn3517
@kabirsumn3517 5 жыл бұрын
why did you quite this job? your content is really awesome. please come back
@KevinBeal-u9f
@KevinBeal-u9f Жыл бұрын
Great tutorial, but would really love if the audio wasn't mono to just the left
@unknownhuman8975
@unknownhuman8975 3 жыл бұрын
I was hearing this video with an earphone thats right side is corrupted.
@wcris007
@wcris007 Жыл бұрын
THANK YOU SO MUCH FOR THIS just subbed and liked the video :D
@andrewtate2729
@andrewtate2729 8 ай бұрын
my left ear enjoyed this
@sweethomes674
@sweethomes674 6 ай бұрын
Excellent 😊
@michaeleichner7522
@michaeleichner7522 5 жыл бұрын
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.
@G-Musically
@G-Musically 4 жыл бұрын
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?
@frankcraven1679
@frankcraven1679 5 жыл бұрын
Keep using the house/property analogy throughout the video. That was a good visual. (Literally just started CSS 3 days ago.) Thanks.
@G-Musically
@G-Musically 4 жыл бұрын
Btw is there any group that. You have on discord that we can join?
@qandeelmya4102
@qandeelmya4102 4 жыл бұрын
You explained really well. Please make a video on "folder path" .
@shubhamarora547
@shubhamarora547 5 жыл бұрын
superb keep uploading tutorials regularly
@ThuNguyen-ky5kc
@ThuNguyen-ky5kc 4 жыл бұрын
Please post more videos.
@uumoss
@uumoss 5 жыл бұрын
ZOOM IN NEXT TIME
Learn CSS BOX MODEL - With Real World Examples
17:45
Slaying The Dragon
Рет қаралды 125 М.
The Box-Sizing Property Explained in 5 Minutes
5:51
5-Minute Web Dev
Рет қаралды 35 М.
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 53 МЛН
Learn CSS Subgrid in 14 minutes
14:19
Slaying The Dragon
Рет қаралды 76 М.
CSS Box Model Tutorial for Beginners
25:56
Dave Gray
Рет қаралды 42 М.
Learn CSS Box Model In 8 Minutes
8:22
Web Dev Simplified
Рет қаралды 597 М.
Learn CSS Flexbox in 20 Minutes (Course)
20:37
Coding2GO
Рет қаралды 131 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 961 М.
How to ACTUALLY Master CSS?
11:51
Mehul - Codedamn
Рет қаралды 68 М.
Master The All Important CSS Box Model - Colt's Code Camp
42:43
Colt Steele
Рет қаралды 42 М.
CSS in 5 minutes
8:16
Aaron Jack
Рет қаралды 147 М.
CSS Selectors - beyond the very basics
18:47
Kevin Powell
Рет қаралды 42 М.