[pmwiki-users] Styling table cells

V.Krishn vkrishn4 at gmail.com
Wed Oct 30 22:50:46 CDT 2013

On Thursday, October 31, 2013 03:53:37 AM Peter Payzant wrote:
> how could I alternate background colours on adjacent rows of the table 
> using the style sheet? Normally I'd just assign alternating classes to 
> the <th> and <td> elements...

if you are targetting newer browsers than this should do the trick:

table tr:nth-child(odd) {
  background-color: #eee;

(Note: tried this with only simple tables)


More information about the pmwiki-users mailing list