Okay, so I've done a bit of research into using PHP to allow using variables in CSS. I know it'll have a hit on the performance, but that doesn't bother, what bothers me is that I can't get the PHP stylesheet to work as it should.
I'm linking the stylesheet with the following code
<link rel="stylesheet" type="text/css" media="screen" href="/res/css/default.php">
And in the PHP stylesheet I'm using the header to read the text as CSS:
<?php header("Content-type: text/css"); ?>
However I'm not getting the results I want at all, you can see the the problem by going to my website, www.andysinventions.info.
Checking the site in Google Chrome with the console open displays this error too,
"Resource interpreted as Stylesheet but transferred with MIME type text/plain." If anyone could explain to me what this meant it might help me resolve the issue.
If there's anything else you need, let me know and I'll fetch it for you if I can.
Thank you, Andy.
-
Got to go for now, however I will be back later to check answers/solutions.