PHP Dev Tools »

This technique is somewhat simple. We will ask Apache to redirect any stylesheet to a specific PHP script. This script will open the stylesheet, and read it line by line to find and replace any user-defined variables. Finally the parsed content will be displayed as pure CSS; browsers won't notice the difference. To close this tutorial, we will also see how to cache the processed result to avoid unnecessary CPU usage.
Posted by girish.r 1522 days ago (http://net.tutsplus.com)
Discuss  | Bury | Tweet This | Tagged: css variables
Add To 

Who Voted for this Story

Comments

No one has commented on this article yet.

Log in to comment or register here.