/
The .captionposition docs ↗ function sets the global position of captions relative to the elements they describe.
This applies to:
.figureThe primary parameter, called default, sets the global style for all captioned elements. Additional parameters figures, tables, and code override the default position for those specific element types.
Each parameter is optional and accepts top or bottom values. Documents use .captionposition {bottom} by default.
.captionposition {bottom}

| Name | Favorite food | Favorite beverage |
|------|---------------|-------------------|
| John | Chicken | Orange juice |
| Jane | Pasta | Iced tea |
| Joe | Sushi | Beer |
"Survey results."
.captionposition {top}
.captionposition {bottom} tables:{bottom}
Photo credits: Pixabay