Skip to content

Basic CSS

kyleplo edited this page Feb 24, 2018 · 1 revision

In the future, we plan to add an UltraLangScript sub-library called css.js. This will have many more features. But in the meantime, UltraLangScript's core has basic CSS functionality.

Getting a single CSS property

To get a single CSS property, use u().style(property). This returns the value as a string.

Setting a single property

To set a single property, use u().style(property,value).

Getting multiple properties

To get multiple properties, use u().style(array of properties). This returns an object of properties and values.

Setting multiple properties

To set multiple properties, use u().style(object of properties and values). The object should look like: {property: "value"}

Property names

In UltraLangScript, you can enter property names in either hyphen-notation or camelCase.

Clone this wiki locally