addCssStyle() public static method
Adds the specified CSS style to the HTML options. If the options already contain a style element, the new style will be merged with the existing one. If a CSS property exists in both the new and the old styles, the old one may be overwritten if $overwrite is true. For example, Html::addCssStyle($options, 'width: 100px; height: 200px');
See also:
removeCssStyle()
cssStyleFromArray()
cssStyleToArray()
public static void addCssStyle ( &$options, $style