Introduction to Static styling
Add a custom CSS style to elements right in the HTML code
Standard CSS properties
Add a CSS styles just like you would add style definition in your CSS file. Syntax is very simple and intuitive. Just use a standard CSS property name with a parenthesis for the value definition. This example shows how to add a background-color
with the #0000ff
color, that represents a property value.
This is the same as background-color: #0000ff;
in the CSS.
Shorthand
TorusKit supports the shorthand syntax for some of the CSS properties to save you time and code length.
Combination
You can combine as many properties as you need. Example below shows the combination of rotate
, opacity
and border-radius
.