[thelist] Coloring specific table cells based on a variable

Eric Hehl eric at thaitec.com
Mon Dec 4 06:05:52 CST 2000


I never even thought about that ...

But you're absolutely right: easier to code, not to mention it will degrade
so much better.

Thank you,

Eric

Do it in CSS, no JavaScript needed. Give the BODY a class of home, library,
programs, etc. then do

BODY.home TD {background-color: #ffffff;}
BODY.library TD
BODY.programs TD

which means 'any TD inside a BODY with class="home"' (or library or
programs).

Much simpler.

ppk
____________________________________________________________________________
_________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list