HTML_CSS : The Definitive Guide |
Another quick way to create multiple selector definitions in one step
is to use the HTML_CSS::parseFile()
function. CSS file to load is supposed to be W3C/CSS compliant.
If previous selector definitions was into a file named 'styles.css', then to parse and load contents will be done with such script :
|
Tip |
|---|---|
|
If there are duplicate definitions into file contents, you should
parse file with call :
$css->parseFile('styles.css', true); We will see next why we may find such duplicate definitions. |
| HTML_CSS : The Definitive Guide | v 1.0.1 : December 21, 2006 |