Skip to main content
Inspiring
June 12, 2006
Answered

Red color of negative numbers

Hello,

I have a great table, generated by a repeat region, out of access, in an asp page on my website.

I use a css style sheet. My mouse get over the number then the cel wil be changed by color.

Now I want to make the generated negative mumbers red in stat of black in the table. Is it possible?

There 80 pages so I like to have a simple solution.

Can some one help me how to do this?

Jan from Holland.
This topic is closed to new replies. Start a new post to keep the conversation going.
snuif12Correct answer
Inspiring
June 12, 2006
double

6 replies

Inspiring
June 13, 2006
You are going to need to have a red format in the CSS something like

.NegNum { color: #FF0000 }

and then apply some inline editing on the field like this

<%
ThisNumber = recordset.fields.item("fieldname").value
If ThisNumber < 0 then
response write ("<p class='NegNum'>") & ThisNumber
Else
response write ("<p>") & ThisNumber
End if
Response.write("</p>")
%>

--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"snuif12" <webforumsuser@macromedia.com> wrote in message
news:e6jjcd$jlo$1@forums.macromedia.com...
> double


Translate
snuif12Author
Inspiring
June 13, 2006
Hello Paul,

Thanks for your response but your idea is impossible.

On that cell I have already an CSS code.
And When I change It I mis this code.
This is the code.


p.navTable {
}

.navTable a:hover {
border : 0px solid #666666;
color : #FFFFFF;
display : block;
text-decoration : none;
width : auto;
background-color : #bb293f;
background-position: center;
padding: 0px;
height: auto;
}

Can Ik add something with it

Translate
snuif12AuthorCorrect answer
Inspiring
June 12, 2006
double
Translate