Media Object

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.
<div class="d-flex align-items-start text-muted mb-4">
    <div class="flex-shrink-0 me-3">
        <img src="assets/images/users/avatar-2.jpg" class="avatar-sm rounded" alt="...">
    </div>
    
    <div class="flex-grow-1">
        <h5 class="fs-14">Media heading</h5>
        This is some content from a media component. You can replace this with any content and adjust it as needed.
    </div>
</div>

<div class="d-flex align-items-start text-muted mb-4">
    <div class="flex-grow-1">
        <h5 class="fs-14">Media heading</h5>
        This is some content from a media component. You can replace this with any content and adjust it as needed.
    </div>
    <div class="flex-shrink-0 ms-3">
        <img src="assets/images/users/avatar-3.jpg" class="avatar-sm rounded" alt="...">
    </div>
</div>

<div class="d-flex align-items-start text-muted">
    <div class="flex-shrink-0 me-3">
        <img src="assets/images/users/avatar-2.jpg" class="avatar-sm rounded" alt="...">
    </div>
    <div class="flex-grow-1">
        <h5 class="fs-14">Media heading</h5>
        This is some content from a media component. You can replace this with any content and adjust it as needed.
    </div>
</div>

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.
<!-- Nesting Example -->
<div class="d-flex align-items-start text-muted mb-4">
    <div class="flex-shrink-0 me-3">
        <img src="assets/images/users/avatar-2.jpg" class="avatar-sm rounded" alt="...">
    </div>
    <div class="flex-grow-1">
        <h5 class="fs-14">Media heading</h5>
        This is some content from a media component. You can replace this with any content and adjust it as needed.
        <div class="d-flex align-items-start text-muted mt-3">
            <div class="flex-shrink-0 me-3">
                <img src="assets/images/users/avatar-3.jpg" class="avatar-sm rounded" alt="...">
            </div>
            <div class="flex-grow-1">
                <h5 class="fs-14">Media heading</h5>
                This is some content from a media component. You can replace this with any content and adjust it as needed.
            </div>
        </div>
    </div>
</div>

<div class="d-flex align-items-start text-muted">
    <div class="flex-shrink-0 me-3">
        <img src="assets/images/users/avatar-4.jpg" class="avatar-sm rounded" alt="...">
    </div>
    <div class="flex-grow-1">
        <h5 class="fs-14">Media heading</h5>
        This is some content from a media component. You can replace this with any content and adjust it as needed.
    </div>
</div>

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.

<!-- Media Alignment -->
<div class="d-flex align-items-start text-muted mb-4">
    <div class="flex-shrink-0 me-3">
        <img src="assets/images/users/avatar-2.jpg" class="avatar-sm rounded" alt="...">
    </div>
    <div class="flex-grow-1">
        <h5 class="fs-14">Top Aligned media</h5>
        <p class="mb-1">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.</p>
        <p class="mb-0">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.</p>
    </div>
</div>

<div class="d-flex align-items-center text-muted mb-4">
    <div class="flex-shrink-0 me-3">
        <img src="assets/images/users/avatar-6.jpg" class="avatar-sm rounded" alt="...">
    </div>
    <div class="flex-grow-1">
        <h5 class="fs-14">Center Aligned media</h5>
        <p class="mb-1">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.</p>
        <p class="mb-0">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.</p>
    </div>
</div>

<div class="d-flex align-items-end text-muted">
    <div class="flex-shrink-0 me-3">
        <img src="assets/images/users/avatar-8.jpg" class="avatar-sm rounded" alt="...">
    </div>
    <div class="flex-grow-1">
        <h5 class="fs-14">Bottom Aligned media</h5>
        <p class="mb-1">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.</p>
        <p class="mb-0">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.</p>
    </div>
</div>