[pmwiki-users] styling table rows

Patrick R. Michaud pmichaud at pobox.com
Thu May 24 13:12:25 CDT 2007


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:)


> On the pmwiki site, a nice effect is achieved here:
> http://www.pmwiki.org/wiki/Cookbook/Administration
> 
> using the template here:
> http://www.pmwiki.org/wiki/Cookbook/RecipeList
> ...
> but I'm not sure how?  I'm guessing that
> class=recipelist has a special definition somewhere
> that does this using the class='indn' put on each tr?
> I you look at the html source, the trs are numbered
> from ind1 to ind4 "<tr class='ind1'>", I don't know
> how this is achieved either?

http://www.pmwiki.org/wiki/Cookbook/FormattingTables

http://www.pmichaud.com/pmwiki/pub/css/Cookbook.css

Pm



More information about the pmwiki-users mailing list