# Figures

> The `` HTML element is for displaying related images and text.

Source: https://www.zenplates.co/documentation/elements/figures/ (Elements › Content)

Use the `<figure>` element to display self-contained content, like illustrations, images, photos or code.  For image-specific styles, refer to the [Images](https://www.zenplates.co/documentation/elements/images) page.

## Usage

Use the `<figcaption>` element to display a caption for a given `<figure>`.

```html
<figure>
  <img class="img-fluid" src="..." alt="..." />
  <figcaption>This is a caption for the image.</figcaption>
</figure>
```

Use [text align](https://www.zenplates.co/documentation/utilities/text-align) utilities to align the caption relative to the image.

```html
<figure>
  <img class="img-fluid" src="..." alt="..." />
  <figcaption class="text-right">This is a caption for the image.</figcaption>
</figure>
```

## Customization

The following Sass variables are available in the theming framework:

| Variable            | Description                                   |
| ------------------- | --------------------------------------------- |
| `$margin-figure`    | The margin applied to the `<figure>` element. |
| `$color-figcaption` | The color of the `<figcaption>` element.      |
