Skip to main content
Inspiring
July 27, 2006
Question

Making a row colored in a table

  • July 27, 2006
  • 1 reply
  • 236 views
Hi,
I have some tables that get displayed when someone does a search
for a company for instance. In this table, it shows the company name,
the contact, address, company classification, etc. The company
classification field is just a way to tell us if the company is a key
account or not. They are labeled as an "A" if they are. What I would
like to do is to make the rows that have the company classification
labeled as an "A" to be a yellow color so users can tell if the
company is a key account right away or not. Does anyone know how to
get this to work correctly? I have attached only a little code. I
think this is where I will have to update it at. Can anyone help me?
Thanks.

Andy
This topic has been closed for replies.

1 reply

July 27, 2006
In the your <tr> tag, check to see if Company_Classification is "A". If it is, add BGCOLOR="yellow" to the tag. See below.