To create a highlighted text effect in Webflow—like colored background behind select words—you can use built-in styling tools and span elements.
1. Use Rich Text or Text Block with Spans
- Drag a Text Block or Rich Text element onto the canvas.
- Select the text you want to highlight, then click the + icon in the Webflow Designer’s top bar to wrap it in a Span.
- This lets you apply unique styles only to that portion of the text.
2. Style the Highlight Span
- With the Span selected, go to the right-hand Style panel.
- Apply styles like:
- Background Color: Use a contrasting shade (e.g., yellow, pink).
- Padding: Add horizontal padding for better highlight spacing.
- Border Radius: For a rounded highlight effect.
- Optional: Change font color for better readability.
3. Use Global Classes for Reuse
- After styling the span, create a class (e.g., “Text Highlight”) so you can reuse it across the site.
- Apply this class to any other spans where you want a similar highlight.
4. Responsive Considerations
- Make sure the padding and font size scale well on smaller screens.
- Test the highlight on tablet and mobile breakpoints to ensure visibility and alignment.
Summary
To achieve a highlighted text effect in Webflow, wrap specific words in a Span, then customize the span’s background and padding using the Style panel. Save it as a class for reusability across your site.