I've got a site that I'd like to do throw a random (from a predetermined set) colour to the stylesheet to change certain elements - i.e. link colour, H1 color etc on a reload.
My thought was to have the colour stored as a variable, then reference the colour in the CSS so it only actually changes one line each time.
So... if I make my .css file to a .php file and add this at the top:
<?php header("Content-type: text/css"); ?>
Is this bad practice or not advised?
<cheeky> Me being a total PHP noob 101: Does anyone have an example of PHP that randomly selects from a list of variables per reload? </cheeky>