• Confluence is currently running with all non-system plugins disabled, some functionality may be missing

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

This macro renders a "sticky box" at the position you say with the contents you put inside the macro body

Code Block
## Sticky box macro by Vertuna LLC
## @param Width:title=Width|type=string|required=true|desc=Width in pixels (numeric)
## @param Height:title=Height|type=string|required=true|desc=Height in pixels (numeric)
## @param Top:title=Top|type=string|required=true|desc=Top in pixels (numeric)
## @param Left:title=Left|type=string|required=true|desc=Left in pixels (numeric)
<div style="position:absolute; z-index:9999; width:${paramWidth}px; height:${paramHeight}px;top:${paramTop}px;left:${paramLeft}px">
$body
</div>


How it renders see right here - red error box rendered at specified position




Image Added



sticky-box
Left100400
Top200400
Height300
Width300
Warning

This is a sticky box at width:300px, height:300px;Top:400px and Left:400px;

Hello