|

Figures

Whenever there is a need to display content, such as an image with an optional commentary, think about utilising a <figure>.

To give some default styles for the HTML5 <figure> and <figcaption> elements, use the included .figure, .figure-img, and .figure-caption classes. Be careful to include the .img-fluid class to the <img> to make it responsive since images in figures do not have a specific size.

Result
...
A caption for the above image.

Aligning the figure's caption is easy with our text utilities.

Result
...
A caption for the above image.