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.
body {
background-color: lightblue;
}
Sets the style for the HTML body to have a lightblue background color
h1 {
color: white;
text-align: center;
}
Sets the style for the h1 headers to have their color white as well as to center the text
p {
font-family: verdana;
font-size: 20px;
}
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: