I've searched around but nothing specific about this topic shows up. I know you can't change php variables with javascript due to the server side/client side difference.
I am trying to figure out if I have a php variable in a CSS file that holds the value of HEX code for a color which is applied through out the css file. Is there a way to use JavaScript to change the value of the hex code defined inside the tags? for example:
<?php
$clabel = '#330099'; //purple 51:0:153
?>
.text2
{
color: <?=$clabel?>; /* font change*/
font-size: 14px;
font-weight: bold;
font-family: Trebuchet MS, arial, verdana;
I want to know how to change the $clabel value so that it would than affect all the other instances of the clabel variable in the css file.