title: Dynamic CSS using php
body: <p>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:</p>
  
  <pre><code>     .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;
          }
  </code></pre>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>Using PHP how can create such dynamic changes.</p>
  
  <p>Thank you.</p>