HTML_CSS::toInline

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 ( 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.

Return the CSS contents in an array (Previous) Generate CSS and stores it in a file (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.