[pmwiki-users] Why do WikiStyles convert to style attributes...
Patrick R. Michaud
pmichaud at pobox.com
Sun Aug 14 17:37:35 CDT 2005
On Sun, Aug 14, 2005 at 05:14:58PM -0400, Russell Bailey wrote:
> ...rather than CSS classes? For example, rather than defining %audience%
> and then converting each usage of that markup to "font-size: smaller;
> background-color: rgb(255, 255, 204)", why not stick it in a CSS class at
> the top of the file and use that?
WikiStyles *can* convert to CSS classes (via class=).
The %audience% wiki-style is an example of an "author-defined style" --
it is created and used by authors without having to modify
any skin templates, CSS files, or PHP files.
It'd probably be possible to have author-defined styles become
special-purpose CSS classes in the final output, but there doesn't
seem to be a compelling reason to choose classes over style
attributes in that case.
More information about the pmwiki-users