Span

since version 3.1.15 Surround text by styling options.

Child elements

A, Action, B, Br, Color, Fontface, ForAll, Frame, HSpace, I, Image, Loop, NoBreak, Span, Sub, Sup, Switch, U, URL, Value

Parent elements

B, Case, Color, Fontface, ForAll, I, Li, Loop, NoBreak, Otherwise, Paragraph, Span, U, URL, Until, While

Attributes

background-color (text, optional, CSS property: background-color)
The background color of the content
background-padding-bottom (length, optional, CSS property: background-padding-bottom)
The bottom padding of the background color (can be negative)
background-padding-top (length, optional, CSS property: background-padding-top)
The top padding of the background color (can be negative)
class (text, optional)
CSS class for this element.
id (text, optional)
CSS id for this element.
letter-spacing (length, optional, CSS property: letter-spacing, since version 3.5.2)
Increase spacing between glyphs.

Example

<Stylesheet>
  .green { background-color: lightgreen; }
</Stylesheet>

<Record element="data">
  <PlaceObject>
    <Textblock>
      <Paragraph>
        <Span class="green"><Value>green</Value></Span>
      </Paragraph>
    </Textblock>
  </PlaceObject>
</Record>

See also