Plugin Div | |
Use this wiki plugin to define and format sections of a page or text. |
Parameters | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Introduced in Tiki 1. Go to the source code Preferences required: wikiplugin_div
|
Controlling "Wrapping" | ||||||||||||
If this plugin is used and the
|
Examples | |
Type=div | |
This code, {DIV(float="right" width="200px" bg="#FFEBCD" align="center")} This section is a "div" that is 200 pixels wide, has a nice blanched almond background color, aligns to the right because float=right, with text that aligns center because align=center.{DIV}
This section is a "div" that is 200 pixels wide, has a nice blanched almond background color, aligns to the right because float=right, with text that aligns center because align=center.
|
Type=span | |
This code, With type=span, the text remains inline. {DIV(type="span" bg="yellow")} This text is in a "span" that is that is highlighted yellow.{DIV} And this text is after the span.
Difference between "div" and "span" These types are similar, but one of the main differences is that the "span" type can be used for inline text whereas the "div" type cannot.
|
Type=pre | |
This code, {DIV(type="pre" align="justify" bg="#D8BFD8" width="600px")} Using "pre" displays text in a fixed-width font, preserves spaces and any line breaks (enter was hit twice before "line"). The width only controls the color, not the text. {DIV}
Using "pre" displays text in a fixed-width font, preserves spaces and any line breaks (enter was hit twice before "line"). The width only controls the color, not the text. Note PluginCode or the Wiki-Syntax Text "~np~ your content ~/np~" can also be used for similar effects and to display code without processing it.
|
Type=blockquote | |
This code, {DIV(type="blockquote" width="150px" align="justify")} Notice that blockquote indents the text. Here the width has been set at 150 pixels and the text is justified.{DIV}
Notice that blockquote indents the text. Here the width has been set at 150 pixels and the text is justified.
|
Type=b, i, tt, | ||||||||||||
These types are used to format text. Here are some examples:
Note Consider using Wiki-Syntax Text if you just need simple text formatting and don't need other formatting like a background color or special alignment. |
Grid Display / Masonry | |
|
Related pages | |
|