Examples
Use few flex utilities that allow even more flexibility and customization than before.
Media heading
This is some content from a media component. You can replace this with any content and adjust it as needed.Media heading
This is some content from a media component. You can replace this with any content and adjust it as needed.Media heading
This is some content from a media component. You can replace this with any content and adjust it as needed.Nesting Example
Media objects can be infinitely nested, though we suggest you stop at some point. Place nested d-flex align-items-start
within the flex-grow-1
of a parent media object.
Media heading
This is some content from a media component. You can replace this with any content and adjust it as needed.Media heading
This is some content from a media component. You can replace this with any content and adjust it as needed.Media heading
This is some content from a media component. You can replace this with any content and adjust it as needed.Media Alignment
The images or other media can be aligned top, middle, or bottom. The default is top aligned.
Top Aligned media
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
Donec sed odio dui. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
Center Aligned media
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
Donec sed odio dui. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
Bottom Aligned media
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
Donec sed odio dui. Nullam quis risus eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.