Walden

I quite appreciate, and agree with your points (and knowledge) but to the
original poster isn't this a lesson in semantic mark-up, a topic covered in
the most basic of beginning CSS books?

Come on lets face it, alternating row style...!

Maurice O'Prey


-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Walden H. Leverich
Sent: 18 November 2008 16:41
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Changing background on individual rows in table (HTML)

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.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.