Skip to main content

Assigning CSS ID and CSS Classes to a control

Give a Yeeflow control an ID or class so you can target it with a CSS rule. Use an ID for one control and a class for controls that should share a style.

How to assign an ID or class to an Element

In a form or dashboard designer, select the control you want to style.

  1. Open Advanced → Advanced.

  2. In CSS ID, enter a page-unique identifier such as review-summary. In CSS Classes, enter a reusable name such as so-yellow.

  3. Enter the names in the fields without # or ..

Advanced tab in the Yeeflow designer, with CSS ID and CSS Classes fields highlighted below the spacing controls.

Custom style with CSS classes and custom CSS

Give a Section control the class so-yellow. In the designer’s Page tab, open Custom CSS and add this rule:

.so-yellow { background-color: #ffff00; }

In CSS, . selects a class and # selects an ID. .so-yellow matches each control with that class. #review-summary matches the control with that ID.

Preview the page and check that the Section background turns yellow. See Custom CSS for page and control scopes.

Did this answer your question?