src/Helpers/Request/HtmlHelper.php
public function addCssStyle(&$options, $style, $overwrite = true)
    {
        $this->proxy(__FUNCTION__, [&$options, $style, $overwrite]);
    }
public function addCssStyle(&$options, $style, $overwrite = true)
    {
        $this->proxy(__FUNCTION__, [&$options, $style, $overwrite]);
    }
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,

```php
Html::addCssStyle($options, 'width: 100px; height: 200px');
```

@param array $options the HTML options to be modified.
@param string|array $style the new style string (e.g. `'width: 100px; height: 200px'`) or
array (e.g. `['width' => '100px', 'height' => '200px']`).
@param bool $overwrite whether to overwrite existing CSS properties if the new style
contain them too.
@see removeCssStyle()
@see cssStyleFromArray()
@see cssStyleToArray()
@see Html::addCssStyle()