The CSS Podcast cover image

68: Why isn't the margin applying?

The CSS Podcast

00:00

How to Create a Block Formatting Context

The next section is about block formatting contexts or BFCs. These are containers that contain internal floats and suppress margin collapsing. Another gripe he might run to is if you're styling emails, which have its own set of fun issues. And as I mentioned earlier, you can't do margin adjustment in table cells.

Play episode from 07:35
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app