C
C
Chvalov2015-01-19 09:28:20
JavaScript
Chvalov, 2015-01-19 09:28:20

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

1 answer(s)
R
Roman Frank, 2015-01-19
@Akellacom

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 question

Ask a Question

731 491 924 answers to any question