Images in Bootstrap are made responsive with .img-fluid
.
max-width: 100%;
and height: auto;
are applied to the
image so that it scales with the parent element.
Create equal-width columns that span multiple rows by inserting a .w-100
where you want the columns to break to a new line. Make the breaks responsive by
mixing the .w-100
with some responsive display utilities.
Change the order of content in media objects by modifying the HTML itself, or by
adding some custom flexbox CSS to set the order
property (to an integer
of your choosing).
In addition to our border-radius
utilities, you can use .img-thumbnail
to give an image a
rounded 1px border appearance.
In addition to our border-radius
utilities, you can use .img-thumbnail
to give an image a
rounded 1px border appearance.
The images or other media can be aligned top, middle, or bottom. The default is top aligned.
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.
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.
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.
Because the media object has so few structural requirements, you can also use these
classes on list HTML elements. On your <ul>
or
<ol>
, add the .list-unstyled
to remove any browser
default list styles, and then apply .media
to your
<li>
s. As always, use spacing utilities wherever needed to fine
tune.