Style Macro

This macro styles a block of content.

Usage

{style:type=<div|span>|align=<align>|font-size=<size>|color=<color>|font-family=<font>|width=<width>|height=<height>}
text
{style}

Parameters definition

  • align : allow align a paragraph to left, center, right, full
  • font-size
  • font-family
  • color
  • background-color
  • width
  • height
  • float
  • border

Example 1

{style:type=div|color=red|width=50%|height=50%}
This is the content in div block 
{style}

Will generate:

This is the content in div block

Example 2

{style:type=div|border=1px solid red|background-color=green|width=300px|height=300px|color=red}
This is the content of style macro
{style}

Will generate:

This is the content of style macro


Creator: Administrator on 2007/12/27 21:04
Copyright © 2008 The Regents of the University of California. All Rights Reserved.
1.8-rc-2.17297