PEAR logo

HTML_CSS : The Definitive Guide

Name

HTML_CSS::toInline — Return a string-properties for style attribute of an HTML element

Synopsis

    require_once 'HTML/CSS.php';
   
string|PEAR_Error HTML_CSS::toInline( $element);  
string   $element;

Description

Generate and return the CSS properties of an element or class as a string for inline use.

Parameter

string $element

Element or class for which inline CSS should be generated

Throws

throws HTML_CSS_ERROR_INVALID_INPUT

Since

since version 0.2.0 (2003-07-31)

Note

This function can not be called statically.

HTML_CSS : The Definitive Guide v 1.5.0 : January 15, 2008