You're seeing the message "The value is overridden by a more specific selector" in Webflow because a more specific class or combo class is overriding the base class's styles, preventing you from editing certain properties at that level.
1. Understand the Specificity Hierarchy
- Webflow uses CSS specificity rules, where more specific selectors (e.g., combo classes or nested elements) override less specific ones.
- If you're editing a base class (like
.Button
), but there's a combo class applied (like .Button.Primary
), the style from the combo class takes precedence. - You’ll see this warning when the style you're trying to modify is already defined in a more specific selector and Webflow is preventing silent overrides for clarity.
2. Check for Combo Classes or Nested Selectors
- Look at the selector shown in the Style panel in the top-left corner. If it says something like
.Button.Primary
, you're editing a combo class. - Hovering over the affected property will indicate which selector is applying the override.
3. Edit the More Specific Selector
- To change the overriding style, select the element with the more specific combo class or selector (e.g.,
.Button.Primary
). - Alternatively, use the Navigator panel to select the correct element or class variation.
- Make your changes in the context of the more specific selector instead of the base class.
4. Remove or Adjust Overrides as Needed
- If you want the base class to control a style, remove the conflicting style from the combo class or more specific selector.
- For example, on
.Button.Primary
, clear the conflicting property (e.g., color or padding) so the base .Button
class can apply its settings.
5. Use Global Style Management Carefully
- Rely on base classes for shared styles when possible, and only apply overrides in combo classes or specific cases when truly needed to avoid confusion.
Summary
The message "The value is overridden by a more specific selector" appears because a more specific class is controlling the style you're trying to change. To resolve it, either modify that specific selector directly or remove the conflicting style to let the base class take effect.