Date: Fri, 29 Mar 2024 11:25:46 +0200 (EET) Message-ID: <1143219542.1209.1711704346597@wiki.vertuna.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1208_1369088808.1711704346492" ------=_Part_1208_1369088808.1711704346492 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Simple macro to place your contents in an HTML div container
You can set it's ID and specify your CSS styles.
Macro renders an HTML div around the content you put in it's body with C= SS styles you set.
Due to the bug in how Confluence renders user macros the contents of thi= s div macro might be rendered incorrectly (outside the div...). Also user m= acro rendering struggles to render properly the textarea objects= p>
## @par= am Id:title=3DDIV ID|type=3Dstring|required=3Dtrue|desc=3DDIV element ID ## @param Css:title=3DCSS Style|type=3Dstring|required=3Dfalse|desc=3DCSS s= tyles for this DIV container <div id=3D"$paramId" #if(${paramCss})style=3D"${paramCss}"#end> $body </div>
In action below
Renders "Hello" in red colour with dashed border
You can easily make this container scrollable by setting the CSS styles = parameter as follows
overflo= w: scroll; overflow-y: auto; overflow-x:visible;height:300px;
Important bit is "height:300px", it sets the heights of the container. I= n this example the container heights will be 300 pixels