Media

Media classes are used to style image-like contents. To style figure-like images there is a special paragraph style paragraph-figures that also allows to style the caption of figure-like images.

Selectors

  • Definitions:

    • media-image

Style Settings

See also: Inline

Setting Type Examples Description
margin-left Length 1em The left margin of the element. (PDF only.)
margin-right Length 1em The right margin of the element. (PDF only.)

Pseudoclasses

See also: Inline

Example

// Set left and right margins for all images
media-image {
  margin-left:   10pt
  margin-right:  10pt
}

// Paragraph style used for all figure-like images
paragraph-figure {
  margin-top:      1em
  margin-bottom:   1em
}