<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

0 Comments