Loading...

CSS Grid Eliminates Margin Collapsing?!?

3,544 views

Loading...

Loading...

Transcript

The interactive transcript could not be loaded.

Loading...

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on May 22, 2018

Sometimes margins smash together. Sometimes they stay separate. This is called "margin collapsing". It can be confusing. Some people wish the web never had such a thing. Well, with CSS Grid, you can make margin collapsing go away. Jen will show you how.

Links:
The Demo: https://codepen.io/jensimmons/pen/pVxrMK
The Tweet: https://twitter.com/jensimmons/status...
Firefox CSS Grid Inspector: https://developer.mozilla.org/en-US/d...
MDN article on margin collapsing: https://developer.mozilla.org/en-US/d...
Bert Bos and Håkon Lie at CSS Day: https://vimeo.com/237192358

Loading...

When autoplay is enabled, a suggested video will automatically play next.

Up next


to add this to Watch Later

Add to

Loading playlists...