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

Class for two colours

Explorer ,
Jun 27, 2006 Jun 27, 2006
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
407
Translate
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
Translate
Enthusiast ,
Jun 27, 2006 Jun 27, 2006
you would have to make two classes, test the value of the number, then apply the right class
Translate
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
what a pity!

but thanks for the answer

Jan from holland
Translate
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
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
Translate
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
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
Translate
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