Focus styling in Webflow

Real outline

Best practice: enable the default outline

Dropdown
Dropdown
Dropdown
Dropdown
Dropdown

Real outline style snippet



Custom :focus state styling for dropdowns, etc.

Add a class to "Dropdown Toggle," and the links, and style the focused state for both.

⚠️: It's import to show the :focus state visually. It enables people to know where they are while navigating your site via keyboard.

Dropdown demo

(press tab to focus, then enter to open, then arrows to focus link items)

Dropdown
Dropdown
Dropdown
Dropdown
Dropdown

Tabs demo

(Click or press tab key to focus, then arrows switch tabs)

Tab 1
Tab 2
Tab 3

1. Add a class to the tab link, and focus state

tab link with focus state

2. Add styling

In this example, I'm using an inner box shadow.

What’s a Rich Text element?

You can tab to this link now.

The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.

Static and dynamic content editing

A rich text element can be used with static or dynamic content. For static content, just drop it into any page and begin editing. For dynamic content, add a rich text field to any collection and then connect a rich text element to that field in the settings panel. Voila!

How to customize formatting for each rich text

Headings, paragraphs, blockquotes, figures, images, and figure captions can all be styled after a class is added to the rich text element using the "When inside of" nested selector system.