CSS Tab
Last updated
Last updated
CSS (Cascading Style Sheets) is used to define styles that can be applied to HTML elements in order to customize the way in which they are displayed in the web browser.
CSS Element | Effect on the corresponding HTML element |
---|---|
| Sets the style for the HTML body to have a lightblue background color |
| Sets the style for the h1 headers to have their color white as well as to center the text |
| Set the style for the paragraphs to have their font family set to verdana and the font-size as 20px |
The following HTML + CSS file modifies the body, H1 header, and paragraph elements' style.
It Results in the following content being displayed in the browser:
To achieve this on the HTML Canvas, the following can be done:
Place the following code on the HTML code editor tab:
Place the following code on the CSS tab:
This is the resulting HTML Canvas Widget shown on a Dashboard: