I have a line of code that currently works like this:
$dimension = '<span style="background-color: #FFFF00"> T='.$thickness.'</span> X='.$x.' Y='.$y;
As you can see the value $thickness
Is highlighted yellow. However $thickness
is a value that changes to the following values: 1.90, 1.50, and 1.15.
How would I make each value have it's own background color?
Example= 1.90 = Yellow, 1.50 = Green, 1.15 = Blue.