Answer the question
In order to leave comments, you need to log in
How to change the color of the bootstrap icon depending on the data from the mysql database?
Hello, there is software that works with hardware and puts everything into the MySQL database.
Temperature, Battery charge and other data. The data is displayed both in the program itself, and should also be displayed in the browser)
Actually the question itself:
How can I change the color of the icon and text depending on the value value.
I would like to do this without using js
if possible
I'm trying to do all this on ZF2
Answer the question
In order to leave comments, you need to log in
Well, do you get this value? Then I don't understand what the problem is.
Do for icon or text background-color: #color;
It all depends on the specific task, how you want to change the color. It is possible, for example, if
Or just substitute your value in #235_your_value (3 digits).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question