To change the color of the first two letters in a heading using Webflow, you’ll need to manually wrap those letters in a span element and apply custom styling.
1. Use a Text Span for the First Two Letters
- Double-click your heading text on the canvas to enter edit mode.
- Highlight the first two letters of the heading.
- Click the + icon (Wrap in Span) in the edit menu that appears.
- This creates a span element around only those two letters.
2. Apply a Class or Style to the Span
- With the span still selected, go to the Selector field in the Style panel.
- Click + to create a new class for the span (e.g.,
first-two-color
). - Set the Text Color to your desired color.
- Optionally set other styles like font weight, background, etc.
3. Style Responsively (Optional)
- If needed, check tablet and mobile views to ensure the colored letters look good in smaller breakpoints.
Summary
Wrap the first two letters inside a span element, assign a class to that span, and apply your desired text color using the Style panel.