Recent Posts

Caution: Greetings to all visitors. The site is working in short. Links Please skip the link to view any topic and thank you for visiting
header ads

Need basic help with Styles and coloring text

Here is the existing code:

<td class='text-right' style='$style_color'>".$symbol.$amount."</td>
Code (markup):

$style_color is a dynamic variable that sets the colour to red or green. It is set above this code like this:
$style_color = 'color: #FF0000';
in an if statement.
$amount just holds a 2 decimal amount.

$symbol is ' + '
or
$symbol is ' - '

I basically want just the symbol to be red or green but the value to always remain black. How do I update the code to get...

Need basic help with Styles and coloring text

from CSS https://ift.tt/2x7A3Jx
via IFTTT

Post a Comment

0 Comments