An entry from December 9th, 2005

Defining CSS Constants Using PHP

Tyler Hall shows us an innovative technique for using PHP to create constants in your stylesheets

It's not some revolutionary new hack, but it is something that many web designers, myself included, wouldn't have thought to do.

The article illustrates how you can set a php script as your stylesheet, and set variables as your hex values. Simple and useful. I may incorporate it in the next site I design.

No comments