CSS tab

CSS (Cascading Style Sheets) defines styles that apply to HTML elements and customize how they appear in the browser.
Examples
body {
background-color: lightblue;
}
Sets the HTML body background color to lightblue
h1 {
color: white;
text-align: center;
}
Sets h1 headings to use the color white and centers the text
p {
font-family: verdana;
font-size: 20px;
}
Sets paragraphs to use the verdana font family and a font size of 20px
Advanced example
The following HTML + CSS file modifies the styles of the body, h1, and paragraph elements.
It results in the following content in the browser:

To achieve this on the HTML Canvas:
Add the following code to the HTML code editor tab:
Add the following code to the CSS tab:
This is the resulting HTML Canvas widget on a dashboard:

Last updated
Was this helpful?