Solved

ResultSet rows background color change

Posted on 2006-11-07
2
165 Views
Last Modified: 2010-04-01
Hi

I have retrun code to pull data from database and display inform of tables.
My question is how to change background of the rows when displayed in.
for example first row is blue second rows is read third row is red.
how can I do when resultset values are printed in table.
Please give me some example.
Thanks
0
Comment
Question by:basirana
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
Kuldeepchaturvedi earned 500 total points
ID: 17890999
you can use css styles to do it...

<TR class = "blue">
</TR>
<TR class="red"></TR>

in your css file..

.blue
{
    BACKGROUND-COLOR: blue;
    FONT-FAMILY: verdana,arial,sans-serif;
    FONT-SIZE: 10pt;
    FONT-STYLE: normal;
    FONT-WEIGHT: normal;
    LINE-HEIGHT: 12pt;
    TEXT-INDENT: 0px
}
.red
{
    BACKGROUND-COLOR: red;
    FONT-FAMILY: verdana,arial,sans-serif;
    FONT-SIZE: 10pt;
    FONT-STYLE: normal;
    FONT-WEIGHT: normal;
    LINE-HEIGHT: 12pt;
    TEXT-INDENT: 0px
}
0
 
LVL 10

Expert Comment

by:jaggernat
ID: 17891237
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here's how to start interacting with our community through Post.
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question