Myvideo

Guest

Login

Margin and Padding Deep Dive: Collapsing margins, resets, and CSS box-sizing

Uploaded By: Myvideo
1 view
0
0 votes
0

Collapsing margins are easily one of the most confusing behaviours for people who are just getting into CSS, mainly because it’s really not very intuitive at all. In this video, I look at what collapsing margins are, and how you can deal with them. After that, I also look at using a global reset of margin and padding so that we don’t have to deal with the defaults, which can really help out beginners. And lastly, we look at the box-sizing property, and it can be used to change the way padding (and border) are calculated, all which make our life a lot easier. This video is all about trying to really understand the more nuanced parts of CSS margins and padding, so that you don’t run into strange behaviours and being able to change a few settings to make your life a lot easier. CodePen l ... #Kevin_Powell #tutorial #html #css #margins #padding #margins_and_padding #margins_vs_padding #the_difference_between_margin_and_padding 20171213 uEfH6qnFF6Y

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later