PEAR::HTML_CSS provides a simple interface for generating a stylesheet declaration. It is completely standards compliant, and has some great features: * Simple OO interface to CSS definitions * Output to - Inline stylesheet declarations - Document internal stylesheet declarations - Standalone stylesheet declarations - Array of definitions In addition, it shares the following with HTML_Common based classes: * Indent style support * Line ending style WWW: https://pear.php.net/package/HTML_CSS