From the course: Bootstrap 4 Essential Training

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Use the media object

Use the media object - Bootstrap Tutorial

From the course: Bootstrap 4 Essential Training

Start my 1-month free trial

Use the media object

- [Instructor] It's really common to have layouts where you have images and text side-by-side and you need the images to be in a separate column than the rest of the content. For this task, Bootstrap gives you a couple of media classes and they're much simpler to use now than they used to be in the previous version of Bootstrap. And that's because they're based on flexbox. Here's how they work. On the container for each one of the elements that you want the control-like disk, you need to add a media class as a container and then for the elements that you want to be off to one side, you add the media body and then you can leave the image by itself and use flexbox to control how those elements are laid out. Using flexbox is part of what makes it so easy to use now. So let's take a look at an example. So here we have the same doctors that we've been seeing in the last few videos and right now they don't have anything sort of special, they're in a main container just so they align to the…

Contents