Style Macro
Styles a block of content (internally it generates an HTML DIV or SPAN). It supports many properties of these 2 elements. The style macro be a superset of the existing info, warning, error and floatingbox macros. We need use some class match with those macrosUsage
{style:type=<div|span>|id=<id>|class=<class>|align=<align>|font-size=<size>|color=<color>|font-family=<font>|width=<width>|height=<height>}text{style}Parameters definition
Supported properties (note that all of them are properties that exist for DIVs and SPANs):- id : id of span of div tag
- class (some classes: warningmessage,errormessage, infomessage, plainmessage, floatinginfobox,… matching with warning, error, info … macros)
- name
- align : allow align a paragraph to left, center, right, full
- font-size
- font-family
- color
- background-color
- width
- height
- float
- border
- icon and document
Example
{style:type=div|color=red|width=50%|height=50%}
This is the content in div block
{style}<div style="color:red;width:50%;height=50%"> This is the content in div block </div>
{style:type=div|border=1px solid red|background-color=green|width=300px|height=300px|color=red|
icon=msgwarning.png|document=Main.Mypage}
This is the content of style macro
{style}Result
This is the content in div block
or
Version 5.1 last modified by VincentMassol on 19/06/2008 at 22:13
Comments: 0