I would also add that the CSS class name should reflect the business need, not the display attributes. For example, The rows aren't green, yellow and red, they're normal, warning and critical. That way when you decide that normal should be no-color instead of green the class of "Normal" still makes sense where the class of "Green" doesn't.
-Walden
--
Walden H Leverich III
Tech Software
(516) 627-3800 x3051
WaldenL@xxxxxxxxxxxxxxx <mailto:WaldenL@xxxxxxxxxxxxxxx>
http://www.TechSoftInc.com <
http://www.techsoftinc.com/>
Quiquid latine dictum sit altum viditur. (Whatever is said in Latin seems profound.)
________________________________
From: web400-bounces@xxxxxxxxxxxx on behalf of Nathan Andelin
Sent: Tue 18-Nov-08 10:21 AM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Changing background on individual rows in table (HTML)
From: "MKirkpatrick"
Any help is appreciated.
In addition to the suggestion to update a CSS class variable on the <tr> tag at runtime, it's generally a good idea to use an external .css file which can be shared across multiple applications. So if you change your background color in the .css file, the color is automatically changed in every application that references the .css file. Some folks even implement user selectable themes, where the .css file reference is determined at runtime, and may vary from one user to the next.
Nathan.
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.