The last time I tried to render CSS through PHP was many, many moons ago. I didn’t work and I couldn’t figure it out. Yesterday I tried again and found out why… the MIME type must be set as text/css. D’oh. Set MIME type like this:
< ?php header("Content-Type: text/css"); ?>
Last updated on 5th September 2018
Leave a Reply