[pmwiki-users] (:background:) markup
Hans
design at flutesong.fsnet.co.uk
Fri Jul 29 16:43:28 CDT 2005
Here is a (:background:) markup, to bring css background styling into
authors use, for various divisions.
## background markup (put in config.php):
Markup('background', 'directive',
'/\\(:background\\s+(#\\w+\\s*\\{\\s*background:[^{}]*?})\\s*:\\)/e',
"PZZ(\$GLOBALS['HTMLStylesFmt'][] = PSS(' $1 '))");
Usage:
(:background #divname {background: any css background attributes} :)
#divname is any division name, like #wikitext, or as used in Gemini
and Fixflow skins: #content, #sidebar etc (check your skin tmpl for
divs)
background attributes are any css attr. for background, like
color-names, color-codes, background-image-url
url(http://site/path/bgimage),
no-repeat, repeat-x, repeat-y, center etc.
Use attributes as words without commas.
Use within (:background ................ :) the same syntax as used
in css for division background definitions, following {background:
including the curly brackets.
Example:
(:background #content {background: #ccffcc
url(http://mysite.com/pmwiki/uploads/Main/mybgimg.jpg) } :)
You can use several (:background ... :) markups on the same page for
various divs, you cannot have more than one #divname in the markup.
Best,
~Hans
More information about the pmwiki-users
mailing list