Version 5.9.14

Rule

Draw a horizontal or vertical rule in the grid.

Child elements

(none)

Parent elements

Clip, Frame, Overlay, PlaceObject, Position, Transformation

Attributes

class (text, optional, since version 5.9.14)
CSS class for this rule.
color (text, optional, CSS property: background-color)
The color of the rule. Defaults to black.
dashed (optional, since version 2.3.50)
Use a dashed rule instead of a solid rule.
  • yes: Draw a dashed rule.
  • no: Draw a solid rule.
direction ()
The direction of the rule.
  • horizontal: Horizontal rule
  • vertical: Vertical rule
id (text, optional, since version 5.9.14)
CSS id for this rule.
length (number or length)
The length of the rule in grid cells or as an absolute length.
rulewidth (number or length, optional, CSS property: height)
The rule thickness given in grid cells or as a length.

CSS

In CSS selectors, this command is called rule. Attributes marked “CSS property” can also be set with CSS; the attribute on the command takes precedence unless the CSS declaration is marked !important. The section CSS for layout commands describes further properties, precedence and inheritance.

Example

<Record element="data">
  <PlaceObject>
    <Rule direction="horizontal" length="10" rulewidth="3"/>
  </PlaceObject>
</Record>

See also

PlaceObject, Placing objects