css and php

Parse CSS with PHP

Author: 
Luke Tarplin

For one of our recent projects we have been looking at Optimising Cascading Style Sheet files. After researching around the subject we found nothing that really suited our needs so we decided to give it a go ourselves.

The first step was to build a list of all the appropriate Style Sheets, as we are only dealing with Screen media we can discount the others such as; print and aural. After we had our appropriate list, it is easy to work out the Cascade path by using which ever styles are applied last and working backwards.

Syndicate content
Valid XHTML 1.0 Strict