Webflow Visual Developer Certification Guide

Chapter 2: Classes & Styles (1.B)

Exam topic 1.B Classes & styles (9%): selectors, combo classes, global and tag styles, class actions and the Style manager, with 11 practice questions.

Lesson 2 of 22 · 11 min read · Updated

Exam topic 1.B Classes & styles: Effectively create, name, use, and manage classes; use classes and combo classes as part of a design system; organize and streamline classes.
Key terms: selector, class, combo class, edit class, remove class, duplicate class, global class, delete class, style selector.
Weight: 9% of the exam (about 4–5 questions)

Webflow Visual Developer Certification: the full study bookEvery chapter and all 144 practice questions with explanations, in one PDF.PDF · 2.4 MB
Free download: unlock it in one step

Share this page

or

Mailchimp opens in a new tab to confirm. Unsubscribe any time.

Classes are the heart of styling in Webflow, and the second-largest topic on the exam. A class is a named set of styles you can apply to many elements. Change the class once and every element using it updates. Get classes right and a site stays easy to change; get them wrong and you end up with hundreds of near-identical classes nobody dares to touch.

2.1 Selectors: what you’re styling

At the top of the Style panel is the selector field. Whatever is shown there is what your styles apply to. It can be:

SelectorExampleStyles apply to
ClasscardEvery element with that class, on every page
Combo classcard is-featuredOnly elements that have both classes
TagAll H2 Headings, All Paragraphs, Body (All pages)Every element of that HTML tag, site-wide
Statebutton: Hover, Pressed, FocusedThe class in that state only
No selectorStyling an element with no classWebflow asks you to add a class; avoid styling elements without one

“Style selector” in the guide refers to this choice: picking the class, combo class, tag or state you style. The Style panel also tells you how many other elements on this page and on other pages use the class, a useful warning before you change it.

Where styles come from

The Style panel color-codes each property:

  • Blue label: the value is set on the current selector at the current breakpoint.
  • Orange/yellow label: the value is inherited, from a parent element, from the base class of a combo class, or from a larger breakpoint.
  • No color: the browser or Webflow default.

Click a colored label to see where the value comes from, or to reset it. That’s how you answer “why is this text purple?”

2.2 Classes, global classes and tag styles

Every class in Webflow is global: it’s defined once for the whole site, and editing it changes every element that uses it, on every page. That’s why the guide talks about a global class: a class used site-wide on purpose to keep elements consistent (for example button, container, heading-large).

Tag styles are even broader. Styling “All H2 Headings” or “Body (All pages)” sets the default for every element of that tag. Use tags for the base typography (font, size, line height, color) and classes for exceptions and components. Rich text content benefits most from tag styles, because editors can’t add classes inside a rich text block.

2.3 Combo classes

A combo class is a class added on top of a base class. It inherits everything from the base and stores only the differences. In the selector field it appears as two classes side by side: button is-secondary.

Example: your button class sets padding, radius, font and a blue background. A secondary button needs a white background and blue text, and everything else the same.

  • Right: add the combo class is-secondary to button and change only the background and text color. If you later change the button’s padding, both versions update.
  • Wrong: duplicate button as button-secondary. Now there are two copies of the padding and radius, and they drift apart the first time someone edits one.

Combo classes are for variations of the same thing. If the element is a different thing altogether (a card vs. a button), give it its own base class.

A combo class only exists together with its base: is-secondary on button is a different selector from is-secondary on card. That’s normal and useful, but it means a combo class name alone tells you little; the base class matters.

2.4 Managing classes: edit, remove, duplicate, rename, delete

The guide’s key terms are the actions you can take on a class. Know exactly what each does:

ActionWhat happensWhen to use it
Edit class (change its styles)Every element using the class changes, everywhereYou want a site-wide change
Remove class (from an element)The class is taken off this element only. The class and its other uses stayThis element shouldn’t have that style
Duplicate classA new, independent class with a copy of the styles is created and applied to the selected elementYou need a genuinely separate class that starts from the same styles. Use sparingly
Rename classThe class keeps its styles and uses; only the name changesFixing naming conventions
Delete classThe class definition is removed from the siteThe class is no longer used anywhere
Clean up (Style manager)Removes all classes that aren’t used on any elementBefore launch and after big redesigns, to shrink the CSS

A classic exam scenario: “You want one button to be bigger, but only that one.” Changing the class edits all buttons. Add a combo class (button is-large) instead. If the change is truly one-off and not a reusable variant, it’s still better as a combo class than as unique styles you can’t find later.

The Style manager

The Style manager (in the left toolbar) lists every class and tag style on the site. From it you can find a class, see its styles, rename it, delete unused ones and run Clean up. Unused classes still ship in your site’s CSS, so cleaning them up makes pages a little lighter and the system easier to understand.

2.5 States

From the selector’s state menu you can style a class for Hover, Pressed, Focused and Focus visible (and others like Visited for links and Placeholder for inputs). Styles set in a state apply only in that state, and they belong to the class, so every button gets the hover effect.

Accessibility tip: don’t remove the focus outline unless you replace it with a clear Focus visible style. Keyboard users need to see where they are (Chapter 12).

2.6 Naming and organizing classes

There’s no single required naming system, but a consistent one makes a site maintainable. Popular approaches:

  • Component-based names with a prefix: nav_link, card_title, footer_list.
  • Utility classes that do one job: text-center, margin-bottom-large, text-color-muted. Stack them on elements.
  • Combo classes for variants with an is- prefix: is-secondary, is-active, is-dark.
  • Frameworks such as Client-First document a whole naming system you can adopt.

Whatever you pick, use descriptive names (what it is, not how it looks today: button is-primary beats blue-button), avoid “Div Block 47”, and write the convention down in your style guide (Chapter 4).

2.7 Classes and breakpoints

Styles you set on a class at the Desktop breakpoint apply everywhere and cascade down to Tablet and the mobile sizes. Styles set at a smaller breakpoint override only that size and the ones below it (Chapter 5). A class can therefore have different font sizes per breakpoint, while staying one class. Don’t create heading-mobile; set the mobile value on heading at the mobile breakpoint.

2.8 Quick checklist

  • ☐ Base typography set on tags (Body, H1–H6, Paragraph, Link).
  • ☐ Reusable classes for repeated elements; combo classes for their variants.
  • ☐ No elements styled without a class; no “Div Block 12” names.
  • ☐ Check “used on X elements” before editing a class.
  • ☐ Style manager Clean up run before launch.
  • ☐ Focus visible styles on links and buttons.

Going further: Chapter 1: Layout & Styling of the Visual Developer guide explains the CSS behind classes, flexbox and grid.

Practice questions: Classes & styles

Answer them all first, then check the answers and explanations below.

Q1. All buttons use the class button. You need one “Download” button with a green background, while all other buttons stay blue and any future padding change applies to all buttons. What should you do?

  • a. Remove the class and style the button without a class
  • b. Add a combo class such as is-green to that button and change only its background
  • c. Duplicate the button class and change the copy’s background
  • d. Change the background of the button class to green

Q2. You change the font size of the class card_title. What happens?

  • a. Only the selected element changes
  • b. Every element with the card_title class changes, on every page
  • c. Only elements on the current page change
  • d. Nothing changes until you duplicate the class

Q3. An element has the class hero_image, which it shouldn’t. You want to take the class off this element without affecting the other elements that use it. Which action?

  • a. Rename the class
  • b. Remove the class from the element
  • c. Edit the class styles to “none”
  • d. Delete the class in the Style manager

Q4. (Multi-select) Which statements about combo classes are true? (Choose two.)

  • a. A combo class stores only the styles that differ from the base class
  • b. Changing a combo class changes the base class too
  • c. A combo class inherits the styles of its base class
  • d. A combo class can be applied without any base class to create a variant

Q5. What’s the best way to set the default font, size and color for all body text and all H2 headings across the site, including text inside rich text blocks?

  • a. Add custom CSS in a code embed on each page
  • b. Add a class to every paragraph and heading
  • c. Style the tag selectors: Body (All pages) and All H2 Headings
  • d. Use combo classes on each rich text element

Q6. A label in the Style panel shows the margin in orange. What does that tell you?

  • a. The value is invalid
  • b. The value is inherited, for example from a parent, a base class or a larger breakpoint
  • c. The value is set with custom code
  • d. The value is set on the current selector at this breakpoint

Q7. Before launch, the site’s CSS includes dozens of classes from discarded drafts. Which action removes all of them at once?

  • a. Export the code and delete the CSS file
  • b. Delete each page and rebuild
  • c. Rename the classes
  • d. Run Clean up in the Style manager to remove unused classes

Q8. Which class names best support a maintainable design system?

  • a. button is-primary, card_title, text-color-muted
  • b. blue-text-24px, Div Block 31
  • c. Long names copied from the page text
  • d. new-class, new-class-2, final-final

Q9. A designer wants every button to darken when hovered. Where should this be set?

  • a. In an interaction on each page
  • b. On the button class in the Hover state
  • c. In site-wide custom code only
  • d. On each button element separately, without a class

Q10. A heading class is 48px on Desktop and should be 32px on phones. What’s the best approach?

  • a. Hide the heading on phones and add a smaller copy
  • b. Select the class at the Mobile portrait (or landscape) breakpoint and set 32px there
  • c. Create a second class heading-mobile and swap it on phones
  • d. Set 32px on Desktop

Q11. When is Duplicate class the right choice instead of a combo class?

  • a. When you need a separate, independent class that starts from the same styles and shouldn’t follow future changes to the original
  • b. Whenever you need a small variation of an existing element
  • c. Never; Webflow doesn’t allow it
  • d. When you want to rename a class

Answers and explanations

Q1: b. A combo class keeps the inheritance: the green button still gets every current and future change to button, and only its background differs. (d) turns every button green. (c) creates a copy that won’t follow future padding changes. (a) leaves an unreusable, hard-to-find style.

Q2: b. Classes are site-wide. Editing one updates every element that uses it, on all pages. That’s their purpose. (a), (c) and (d) describe behavior Webflow classes don’t have.

Q3: b. Removing a class from an element only affects that element. (d) deletes the class from the site (and Webflow only lets you delete unused classes from the Style manager). (a) renames it everywhere. (c) restyles every element with the class.

Q4: a and c. A combo class inherits from its base and records only the differences. (b) edits to the combo don’t change the base. (d) a combo class is defined by its base; without one it’s just a normal class.

Q5: c. Tag styles set site-wide defaults, and they reach content in rich text, where editors can’t add classes. (b) is a lot of work and misses rich text. (a) and (d) are fragile workarounds.

Q6: b. Orange (yellow) means inherited; click it to find the source. Blue means set on this selector at this breakpoint. (a) and (c) aren’t what the colors mean.

Q7: d. Clean up removes every class not used by any element. (b) is drastic. (c) changes nothing. (a) doesn’t change the Webflow site.

Q8: a. Descriptive, consistent names that say what an element is, with variants as combo classes, are easy to understand and reuse. (b) describes looks that will change and leaves default names. (d) and (c) carry no meaning.

Q9: b. Hover is a state of the class, so it applies to every button using it. (d) isn’t reusable. (a) interactions are for animation sequences; a simple hover color belongs to the class state. (c) bypasses the visual system.

Q10: b. One class can have different values per breakpoint; set the smaller size at the mobile breakpoint and it cascades to smaller sizes. (c) and (a) duplicate classes or content. (d) changes desktop too.

Q11: a. Duplicate creates an independent class. That’s right only when the new class should evolve separately. For variations that should follow the original, use a combo class (b). (d) is Rename. (c) is false.

Leave a Reply

Your email address will not be published. Required fields are marked *