css

fun css(content: String): <Error class: unknown class>

Creates a <style> HTML element with the provided CSS content. The content is wrapped in a <style> tag and rendered as-is, without any additional processing or escaping, as long as the rendering target supports HTML.

.css
body {
background-color: green !important;
}

Return

a new Html node representing the style element

Parameters

content

raw CSS content to inject

See also

for a more structured way to override CSS properties.

Wiki page

CSS