[pmwiki-users] styling table rows
The Editor
editor at fast.st
Thu May 24 13:18:13 CDT 2007
On 5/24/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> On Thu, May 24, 2007 at 08:59:05AM -0700, Martin Fick wrote:
> > You will still have the problem of getting rows to
> > look nice if there is any spacing between cells since
> > your template only sets the bg color on the cells, not
> > the entire row. There is a PITS for this:
> >
> > http://www.pmwiki.org/wiki/PITS/00634
>
> How about a %row ...% wikistyle, which applies wikistyles to
> table rows? One advantage would be that it would work for
> both normal tables and table directives.
>
> ||%row bgcolor=yellow% ... || ... ||
>
> (:cellnr:) %row bgcolor=yellow%
> (:cell:)
> (:cellnr:) %row bgcolor=blue%
> (:cell:)
> (:cellnr:) %row bgcolor=yellow%
> (:cell:)
Another option is the tables plus recipe which allows tab attributes.
Basically it has the simplicity of simple tables plus the power of
table directives. And it nests.
I no longer use anything else.
Cheers,
Dan
More information about the pmwiki-users
mailing list