Hi there first post! 🙂 I'm a total php newbie, but I'm slowly picking up the php language. I like how you can embed php inside xhtml files, and I was wondering if this could be done with linked css files (and even linked javascript files).
I could test this myself, but like I've said, I'm a total newbie, and I would not be able to tell if it was down to my poor programming skills, or the the restrictions of php.
I've created a php stylesheet switcher, that works ok, but its is very basic - it only swaps the link code in the head area. this means that I need several different stylesheets What I'd really like is one bigger stylesheet file that has php code inside it, that can be altered dynamically.
Is it possible to do this (is it difficult?), and could the variables be passed from a xhtml file to the css file, and vice versa? Lastly, how would I go about doing this?
Thanks.