[Pmwiki-users] Table styles

Edward Andrews edward at aldreth.com
Tue Jun 17 14:56:36 CDT 2003


What I was thinking of was class='tableclass' inside a table that is made
from the || style of coding.  Thinking about this more though, it may be
adding too much complexity to the basic form of table creation.

What do you think?

Edward

-----Original Message-----
From: Patrick R. Michaud [mailto:pmichaud at pobox.com]
Sent: 17 June 2003 02:22
To: Edward Andrews
Cc: Pmwiki-users at pmichaud.com
Subject: Re: [Pmwiki-users] Table styles


On Sun, Jun 15, 2003 at 03:25:28PM +0100, Edward Andrews wrote:
> Is it possible to add a class or id tag to tables or cells to enable
> styling through CSS?

For the block-level tables (using the [[table]] and [[cell]] tags), you
can add any class attributes you want in the wiki markup, as in

    [[table class='mytclass']]
    [[cell id='myfirstcell' class='mytcell']]
    ...

For ||-tables, the attributes of the <table> and <td> tags are taken from
the $TableAttr and $TableCellAttr configuration variables, and you can
set these to be whatever you want.

Is that sufficient, or were you looking for something else?

Pm





More information about the pmwiki-users mailing list