public function removeStyle($property)
    {
        // get string or array of style tags added
        $st = $this->template->get('style');

        // if no style, do nothing
        if (!$st) {
            return $this;
        }

        // if only one style, then put it in array
        if (!is_array($st)) {
            $st = array($st);
        }

        // remove all styles and set back the ones which don't match property
        $this->template->del('style');
        foreach ($st as $k => $rule) {
            if (strpos($rule, ';'.$property.':') === false) {
                $this->template->append('style', $rule);
            }
        }

        return $this;
    }
public function removeStyle($property)
    {
        // get string or array of style tags added
        $st = $this->template->get('style');

        // if no style, do nothing
        if (!$st) {
            return $this;
        }

        // if only one style, then put it in array
        if (!is_array($st)) {
            $st = array($st);
        }

        // remove all styles and set back the ones which don't match property
        $this->template->del('style');
        foreach ($st as $k => $rule) {
            if (strpos($rule, ';'.$property.':') === false) {
                $this->template->append('style', $rule);
            }
        }

        return $this;
    }
public function removeStyle ( $ property ) { // get string or array of style tags added $ st = $ this -> template -> get ( 'style' ) ; // if no style, do nothing if ( ! $ st ) { return $ this ; } // if only one style, then put it in array if ( ! is_array ( $ st ) ) { $ st = array ( $ st ) ; } // remove all styles and set back the ones which don't match property $ this -> template -> del ( 'style' ) ; foreach ( $ st as $ k => $ rule ) { if ( strpos ( $ rule , ';' . $ property . ':' ) === false ) { $ this -> template -> append ( 'style' , $ rule ) ; } } return $ this ; }
Remove inline CSS style from element, if it was added with setStyle
or addStyle.

@param string $property CSS Property to remove

@return $this
Remove inline CSS style from element if it was added with setStyle or addStyle .