Caption Category Keys
The keys in the caption
category control the arrangement and style of block captions globally.
In addition to this global caption
category, each of the keys listed below, except for the text-decoration
keys, can be set on the caption key nested inside the following block categories: code
, example
, footnotes
, image
, quote
, table
, and verse
.
The caption-align and caption-text-align keys, when nested on the image or table category, also accept the value inherit .
See Block Image Styles and Table Styles for more information about setting inherit on their captions.
|
Key | Value Type | Example |
---|---|---|
align |
Block alignment |
|
background-color |
Color |
|
font-color |
Color |
|
font-family |
Font family name |
|
font-kerning |
|
|
font-size |
Number |
|
font-style |
Font style |
|
margin-inside |
Measurement |
|
margin-outside |
Measurement |
|
text-align |
Text alignment |
|
text-decoration |
Text decoration |
|
text-decoration-color |
Color |
|
text-decoration-width |
Number |
|
text-transform |
Text transform |
|