Skip to content

Kirby 4.4.1

Html::css()

Creates one or multiple CSS link tags

Html::css(Kirby\Cms\Plugin|Kirby\Cms\PluginAssets|array|string $url, array|string|null $options = null): string|null

Parameters

Name Type Default Description
$url * Kirby\Cms\Plugin|Kirby\Cms\PluginAssets|array|string Relative or absolute URLs, an array of URLs or @auto for automatic template css loading
$options array|string|null null Pass an array of attributes for the link tag or a media attribute string

Return type

string|null

Parent class

Kirby\Cms\Html