Bootstrap 4 tutorial

Content (4): Figures

Figures

Image with a caption

Use a figure and add a caption text with figcaption .

For a caption below an image

A caption for the above image

For a caption above an image

A caption for the below image

Caption placement

Set .text-(left|center|right) to figcaption (⇒ Text utility )

figcaption.figure-caption.text-left

A caption for the above image

figcaption.figure-caption.text-center

A caption for the above image

figcaption.figure-caption.text-right

A caption for the above image