“collapsing margins in action” section

In the “collapsing margins in action” of CSS Demystified, Kevin adds a padding top & a padding bottom & that brings the hero image into view where prior to that, it was partially covered. I think I am somehow not understanding where the part is that explains why the lack of padding prevents the image from being in full view. Can someone please explain how this works? Thanks!
2 Replies
Mannix
Mannix7mo ago
Kevin Powell
YouTube
Avoid these 5 beginner CSS mistakes
Check out CSS Demystified 👉 https://cssdemystified.com/?utm_campaign=general&utm_source=youtube&utm_medium=beginnermistakestoavoid Here are some common mistakes I see beginners make in their CSS, and a big thank you to Geoff Graham with helping me make this list! My video on the dumb mistakes I keep making: https://youtu.be/GWkMYvoCXyQ ⌚ Time...
Power Coder
Power CoderOP7mo ago
I may not be understanding this correctly but in the collapsing margins section, Kevin doesn’t have any margins applied to the image so why was it not in full view at the beginning?
Want results from more Discord servers?
Add your server