Block Image Category Keys
image
The keys in the image
category control the arrangement and style of block images.
Key | Value Type | Example |
---|---|---|
align |
Block alignment |
|
Color |
|
|
|
|
|
border-radius |
Measurement |
|
border-style |
Border style |
|
border-width |
Measurement | Measurement[] |
|
float-gap |
Measurement | Measurement[side,bottom] |
|
Measurement |
|
border-color
A border is applied to a block image if border-color
is specified, border-width
is specified, the value of border-width
is greater than zero, and the noborder
role isn’t present.
The border is drawn above the image on the inside of the box reserved for the image.
border-fit
When the value auto
is assigned to the border-fit
key the border will expand to fit the width of the container (i.e., full width) instead of the image.
width
The width
key only applies to block images that don’t have either a pdfwidth
or scaledwidth
attribute on the image macro.
If width
is specified, its value takes precedence over the value of the width
attribute on the image macro, but not over the value of the pdfwidth
or scaledwidth
attributes.
The width
key accepts the same values as the pdfwidth
attribute.
image-alt
The keys in the image-alt
category control the arrangement and style of the alt text of block images.
Key | Value Type | Example |
---|---|---|
Quoted string |
|
|
font-color |
Color |
|
font-family |
Font family name |
|
font-kerning |
|
|
font-size |
Font size |
|
font-style |
Font style |
|
image-caption
The keys in the image-caption
category control the arrangement and style of the captions for block images.
Most of the keys listed on Caption Category Keys can also be nested under the image-caption
category to further customize the image captions.
Key | Value Type | Example |
---|---|---|
Block alignment | inherit |
|
|
End placement |
|
|
|
|
|
Text alignment | inherit |
|