Change styles using the CSS panel
The CSS panel shows the styling for any element that you select. You can also edit the styling for the class, add inline styling, and create new styles using the CSS panel.
To create a new style rule in your document:
- Select an element that you want to apply the new style rule to.
- Click the Add rule button at the bottom of the CSS panel.
- Google Web Designer will automatically generate a unique class selector. You can enter a different selector as long as it's unique and applies to the selected element. If you provide a new class name, Web Designer will automatically add that class to the selected element.
- Between the brackets for the new rule's declaration, click Add property and enter a CSS property and value, e.g.,
- Continue to add new property/value pairs until the rule is fully defined.
To add an inline style to an element in your document:
- Select an element.
- In the CSS panel, click Add property button in the inline style block.
- Add property/value pairs to change the element's style.
To modify a style:
- Select an element in your document. The CSS panel will display the style rules associated with the element.
- Click a property or value to edit it.