in reply to HTML::Template __even__

Greetings, AM.

FWIW, if you use a CSS file. You could simply add

/* for ODD row alternation */ tr:nth-child(odd) {background:#f6f6f6} /* for EVEN alternation */ tr:nth-child(even) {background:#f6f6f6}

Best wishes.

--Chris

¡λɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH

Replies are listed 'Best First'.
Re^2: HTML::Template __even__
by Mr. Muskrat (Canon) on Jun 04, 2014 at 19:15 UTC

    You actually have to specify background-color or at least background for that to work.

      LOL. Right you are Mr. Muskrat. But I only posted enough to infer it's intended usage.

      One might also add/choose other attributes

      border-bottom:0.2em solid #d00;
      or
      display:none;
      ;)

      Thanks for mentioning it Mr. Muskrat. Updated, for better clearity. :)

      --Chris

      ¡λɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH