rotate attribute

Used By:All block elements
See:background-macro overflow position

What angle to rotate the current block around it's center of gravity, in degrees clockwise from 12 o'clock. A blocks center of gravity is it's x position plus half it's width and the y position plus half it's height.

This attribute can create interesting effects, and is particularly useful for placing watermarks and similar on the page, but should be used with care as surrounding content may be overlapped by the rotated block.

This places a "Confidential" stamp on each page, rotated at 45% counter-clockwise

  <macro id="watermark">
    <p rotate="-45" font-size="48pt">
<body background-macro="watermark">