Solving Media Object Float Issues With CSS Block Formatting Contexts
Let’s imagine we’re making a small component. It can be anything, really, but let’s use a media object as an example. Nicole Sullivan had a solid definition of media objects from way back in 2010, and you probably already know the pattern well: some form of media (often an image) on the left and text beside it on the right. The media could be an image or a video, for example.This is the basic HTML for the layout, minimized for brevity:<section class="container"><articl
Read more »