style

Applies a CSS style via the style attribute to this tag. The attribute is not added if the generated CSS string is empty.

Return

this for concatenation

Parameters

init

CSS builder initialization

See also


fun style(style: NodeStyle, init: CssBuilder.() -> Unit = {}): HtmlTagBuilder

Applies a NodeStyle via the style attribute to this tag. The attribute is not added if the generated CSS string is empty.

Return

this for concatenation

Parameters

style

the style to apply

init

additional CSS builder initialization

See also