Edit this page

up.element up.element.setStyle(element, styles)
JavaScript function

Sets the given CSS properties as inline styles on the given element.

Example

up.element.setStyle(element, { color: 'red', 'font-size': '2em' })

Parameters

element
required

The element on which to change inline styles.

styles
required

One or more CSS properties with kebab-case keys.