Currently, I am working on PHP codeignitor framework. I have some properties suppose like color,fonts etc. saved in my database for one of fields. All I want to do is, I have some classes in the css file with default values. Like ex. I have a css class as below:
.text_box{
color: pink;
text-decoration: none;
background-color: transparent !important;
transition: all 0.2s ease-in-out 0s;
}
.text_box:hover{
color: blue;
text-decoration: none;
background-color: transparent !important;
transition: all 0.2s ease-in-out 0s;
}
In my database, I have set color property as yellow for text box. I want to change it dynamically. means when I change that color from input field, it should automatically get converts into the color I want in css property.
I dont know exactly whether my question is correct or not. I have goggled many links but didn't get the relevant solution to my scenario.
Using PHP how can create such dynamic changes.
Thank you.