This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]

Inline CSS definitions are supported on wikipages starting with JSPWiki version 2.1.38. (Note that this site is currently running on an older, stable version!)

The styling notation surrounds a section of regular wikitext with a DIV tag with the specified CSS attributes.

With IE6, the div tag produces a cosmetic bug. Spaces are not rendered correctly. Create the following simple HTML file and display it in IE6 and Firefox 1.0:

<html>
This should be a <div style="color:red;display:inline">red</div> word.
</html>

-- ReinhardEngel, 2004-11-26


Applying style sheet classes on WikiPages#

To apply a CSS style defined in a style sheet (probably .../templates/default/jspwiki.css, unless you have defined your own template in jspwiki.properties), apply this notation:

Wiki notation Effect
%%stylename ... %% start styled section using class stylename content: normal WikiNotation to be styled close styled section

Applying in-line CSS styles#

The notation for in-line CSS drops the stylename parameter, replacing it with style definitions surrounded by parantheses:

Wiki notation Effect
%%( font-size: 150%; color: red ) ... %% start styled section with any CSS definitions content: normal WikiNotation to be styled close styled section

Examples#

HowToColorText HowToCenterText
I wasn't too sure whether to use ( or [ or { to delimit the css code... Let me know if my choice is likely to cause problems... For an example, see this entry on my weblog. -- JanneJalkanen

Add new attachment

Only authorized users are allowed to upload new attachments.
« This particular version was published on 26-Nov-2004 11:04 by ReinhardEngel.