Is it possible to have php echoing in style sheets?
I was going to have a standard CSS doc with a PHP include which grabbed my external colors, then echo the HEX values into the CSS color values. Can this work ? Maybe I am going about it all wrong?
CSS Basic Question
Moderator: General Moderators
Re: CSS Basic Question
easily done:
now you can use PHP in your stylesheet!
Code: Select all
<style type="text/css" media="all">
@import url("./style.php");
</style>
Re: CSS Basic Question
Thanks for your reply!!
So I understand correctly, style.php can have a mixture of php code and styles ?
So I understand correctly, style.php can have a mixture of php code and styles ?
Re: CSS Basic Question
Yes, it must be a PHP script that when run outputs valid CSS though.
Re: CSS Basic Question
thanks heaps!