PEAR logo

HTML_CSS : The Definitive Guide

Name

HTML_CSS::getStyle — Return the value of a CSS property

Synopsis

    require_once 'HTML/CSS.php';
   
mixed|PEAR_Error HTML_CSS::getStyle( $element,  
  $property);  
string   $element;
string   $property;

Description

Get the value of a property to an identifed simple CSS element

Parameter

string $element

Element (or class) to be defined

string $property

Property defined

See

see HTML_CSS::setStyle

Throws

throws HTML_CSS_ERROR_INVALID_INPUT, HTML_CSS_ERROR_NO_ELEMENT, HTML_CSS_ERROR_NO_ELEMENT_PROPERTY

Since

since version 0.3.0 (2003-11-03)

Note

This function can not be called statically.

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