Solved

ResultSet rows background color change

Posted on 2006-11-07
2
160 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
2 Comments
 
LVL 19

Accepted Solution

by:
Kuldeepchaturvedi earned 500 total points
Comment Utility
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
Comment Utility
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now