Core/Html/AbstractHtml.php
public function addCss($css)
    {
        if (!is_array($css)) {

            // Clean css argument from unnecessary spaces
            $css = preg_replace('/[ ]+/', ' ', $css);

            // Do not trust the programmer and convert a possible
            // string of multiple css class notations to array
            $css = explode(' ', $css);
        }

        foreach ($css as $class) {
            $this->css[$class] = $class;
        }
    }
public function addCss($css)
    {
        if (!is_array($css)) {

            // Clean css argument from unnecessary spaces
            $css = preg_replace('/[ ]+/', ' ', $css);

            // Do not trust the programmer and convert a possible
            // string of multiple css class notations to array
            $css = explode(' ', $css);
        }

        foreach ($css as $class) {
            $this->css[$class] = $class;
        }
    }
public function addCss ( $ css ) { if ( ! is_array ( $ css ) ) { // Clean css argument from unnecessary spaces $ css = preg_replace ( '/[ ]+/' , ' ' , $ css ) ; // Do not trust the programmer and convert a possible // string of multiple css class notations to array $ css = explode ( ' ' , $ css ) ; } foreach ( $ css as $ class ) { $ this -> css [ $ class ] = $ class ; } }
Add one or more css classes to the html object.
Accepts single value, a string of space separated classnames or an array of classnames.

@param string|array $css
Add one or more css classes to the html object . Accepts single value a string of space separated classnames or an array of classnames .