There are no tracking or monitoring cookies on this site. There are only cookies used for documentation examples related to cookies.
Close

Processing...
This may take a few seconds.

style

Syntax

style: (CSS style property) (["]value["]) [every (time)] [after (time)][, (CSS style property)...];

This command allows you to set CSS styles dynamically in one line.

For example:

#nightTheme:click {
    body {
        style: background-color #000, color #fff, font-family "\"Trebuchet MS\", Verdana, Arial, serif";
    }
}

Note: Double-quotes are required if the value has inside commas, such as in the above example for font-family.

Regular CSS in the config

Since version 2, you can use regular CSS commands in your config, like "background-color: green;". These will be applied to the target selector.

Standard CSS commands also respond to the "after 1s" or "every 1s" types of parameters when used in Active CSS.

Blink tag simulation = "color black every 2s, color white after 1s every 2s :)

style