I am going to start at a website which requires changing color scheme every 2 weeks.
I am looking for a dynamic solution to change color and some structure of the website using CSS & amp; Php
A solution that I can see is using dynamic CSS method for example
& lt; Php header ("content-type: text / css"); $ Mencolour = "# ff0000"; Echo 'h1 {color: $ menucolor}? & Gt;
The other solution is using some php classes to perform the same task. As is available on a phpclasses website
Is there any other better way of doing this? If someone has used above two ways, then what could be the use of them?
Some expert opinion is required :)
A popular CSS pre-processor Besides, among other things, lets you use variables in CSS for things like your color scheme, when you change it, then you compile the CSS, so the overhead of running PHP scripts for every time you load Do not need to (Yes, you can write your own cache system for PHP, but others do not have to do the hard work again; d)
Comments
Post a Comment