[pmwiki-users] facilititate customistion using CSS for simple tables
Patrick R. Michaud
pmichaud at pobox.com
Fri Jan 22 13:46:42 CST 2010
On Mon, Jan 11, 2010 at 04:56:32PM -0500, DaveG wrote:
> On 1/11/2010 2:54 PM, Patrick R. Michaud wrote:
>
> >The problem is that this isn't actually "simple" nor "straightforward".
> >PmWiki doesn't have an easy way to put a default class "in addition to
> >any a user declares" -- as things currently exist it can either use a
> >hard-coded one, fall back to a default, or accept the class declaration
> >provided by the user. There's not a simple mechanism for combining classes
> >(which, btw, I personally find to be a serious flaw in the design of CSS itself).
> You can add multiple classes to an element, which whilst not
> providing a strict 'combination' might provide the flexibility to
> achieve the result being looked for.
> <table class='wikisimpletable my_class'>
Yes, one can add multiple classes to an element. But the code
required to search an existing <table> tag to see if it
already has a 'class' attribute and then add another class
to that attribute is not so simple.
Pm
More information about the pmwiki-users
mailing list