Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Class for two colours

Explorer ,
Jun 27, 2006 Jun 27, 2006

Copy link to clipboard

Copied

Hello,

I want to make one class for the pupose of two colours of the numerical notation for the positive and negative.

Is this possible?

How do I arange this?

Jan from Holland
TOPICS
Server side applications

Views

405
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jun 28, 2006 Jun 28, 2006
what a pity!

but thanks for the answer

Jan from holland

Votes

Translate
Enthusiast ,
Jun 27, 2006 Jun 27, 2006

Copy link to clipboard

Copied

you would have to make two classes, test the value of the number, then apply the right class

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 28, 2006 Jun 28, 2006

Copy link to clipboard

Copied

what a pity!

but thanks for the answer

Jan from holland

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 28, 2006 Jun 28, 2006

Copy link to clipboard

Copied

On 28 Jun 2006 in macromedia.dreamweaver.appdev, snuif12 wrote:

> what a pity!

No, actually, it's relatively easy.

<style>
.class1 td {
color : black ;
}
.class2 {
color : red ;
}
</style>

<table class="class1">
<!-- repeat region code goes here -->
<tr>
<td><% print variable1 %></td>
<td><% print variable2 %></td>
<!-- this is the cell which changes -->
<td <% IF variable3 < 0 THEN print " class='class2'" %>><% print variable3 %></td>
</tr>
<!-- end repeat region code -->
</table>

--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/email.php

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 28, 2006 Jun 28, 2006

Copy link to clipboard

Copied

LATEST
On Wed, 28 Jun 2006 10:02:45 +0000 (UTC), Joe Makowiec
<makowiec@invalid.invalid> wrote:

>On 28 Jun 2006 in macromedia.dreamweaver.appdev, snuif12 wrote:
>
>> what a pity!
>
>No, actually, it's relatively easy.
>
><style>
>.class1 td {
>color : black ;
>}
>.class2 {
>color : red ;
>}
></style>

That's two classes.
--
Steve
steve at flyingtigerwebdesign dot com

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines