Collapsing margins are incredibly frustrating when you don't understand them, but once you know how they work, and in what situations, you can find solutions to work around them.
Codepen from this video: [ Ссылка ]
CSS Working Group Mistakes made in CSS: [ Ссылка ]
More information on Formatting Context: [ Ссылка ]
Andy Bell / Piccalilli: [ Ссылка ]
Also follow Andy on Twitter: [ Ссылка ]_
⌚ Timestamps ⌚
00:00 - Introduction
00:51 - What are collapsing margins?
03:02 - Differences when using flexbox and grid
06:08 - The wrong solution I see all the time
07:15 - Using flow-root
08:36 - A more ideal solution with a lot of control
#css
--
Come hang out with other dev's in my Discord Community
💬 [ Ссылка ]
---
Keep up to date with everything I'm up to
✉ [ Ссылка ]
---
Help support my channel
👨🎓 Get a course: [ Ссылка ]
👕 Buy a shirt: [ Ссылка ]
💖 Support me on Patreon: [ Ссылка ]
---
My editor: VS Code - [ Ссылка ]
---
I'm on some other places on the internet too!
If you'd like a behind the scenes and previews of what's coming up on my YouTube channel, make sure to follow me on Instagram and Twitter.
Instagram: [ Ссылка ]
Twitter: [ Ссылка ]
Codepen: [ Ссылка ]
Github: [ Ссылка ]
---
And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!
Ещё видео!