[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 168
  • Last Modified:

ResultSet rows background color change

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
basirana
Asked:
basirana
1 Solution
 
KuldeepchaturvediCommented:
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
 
jaggernatCommented:
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now