9 protected $css = array(
10 'hspace' => array(
'left',
'right'),
11 'vspace' => array(
'top',
'bottom')
16 if (!isset($this->css[
$attr])) {
17 trigger_error(htmlspecialchars($attr) .
' is not valid space attribute');
28 if (!isset($this->css[$this->attr]))
return $attr;
31 foreach ($this->css[$this->attr] as $suffix) {
32 $property =
"margin-$suffix";
33 $style .=
"$property:{$width}px;";