Tabs

Use the Tabs element to add responsive, tabbed content to your Webflow project.

This video features an old UI. Updated version coming soon!
 
This video features an old UI. Updated version coming soon!

In this lesson:

  1. Add tabs
  2. Add content to the tabs
  3. Style tabs

Add tabs

To add the tabs element, go to the Add panel and scroll down to the components section. Then click and drag the Tabs element to place it on the canvas. It will automatically fill the width of whatever element it is placed in.

 

Anatomy of tabs

The Tabs element is made up of the Tabs Wrapper, which has inside it the Tabs Menu the Tabs Content.

Webflow Tabs component anatomy

Tabs menu

The tabs menu contains all the tab links. By default, there are three tab links. Within each tab link is a Text block.

Tabs content

Nested inside the tabs content are the tab panes, where the content for each tab is kept. By default there’s three panes (matching the number buttons).

Creating a tab

By default there are three tabs. You can add more with the following steps:

  1. Select any element within the Tabs
  2. Go to the Element Settings panel
  3. Under Tabs settings click the plus icon

When you create a new tab, a tab link and a tab pane are automatically created in the correct locations.

Deleting tabs

  1. Select any element within the Tabs
  2. Go to the Element Settings Panel
  3. Find the Tabs Settings section
  4. Click the trash icon next to the tab you want to delete  

If you delete a Tab Link, the corresponding tab pane will also be deleted, and visa versa.

Renaming tabs

In the tab settings, you can also rename the tabs for internal organization (this will not rename the tabs on the canvas).  

Switching tabs

There are several ways you can switch to different tabs:

  • Select the tab from the Set Active Tab list. Be aware: this will also set the default tab when the website is loaded
  • Select the tab you want to view in the Navigator
  • Select a pab Pane on the canvas and use the left and right arrows on the keyboard to select adjacent tab panes
 

Add content to a tab

After switching to a tab you can add elements to the tab pane in a couple ways:

  • With the tab pane selected, click on elements in the Add panel to instantly insert them
  • Drag and drop elements from the Add panel into the tab pane
 

 

You can also preview the content of each tab by going to Preview mode and clicking through each tab button. 

Style tabs

You are able to style every element within the tabs component.

Tabs menu

You can style the tabs menu by first selecting it on the canvas or from the Navigator and then going to the Style panel. For example, you can choose to add bottom margin to create space between the tabs and the content within the tab panes. 

 

Tab links

First, select a tab link, and create a new class. Then add this class name to all of the other tab links so they share the same styles. This green Current class is automatically applied whenever a tab is selected on your site. 

 

 

Once all Tab Links have the same class name, select one of the tab links without the Current class. You can style one of these Tab Links and the changes will be applied to all of them. For example, you can edit the font color, font size, and background color.

 

Styling the current tab link

You can choose to style the current tab differently than the normal tab to differentiate between active and inactive tabs. For example, you can edit the font color and background color to be different than a normal tab. To style the current tab, simply select the active tab link.

 

Hover styling for tab links

You can add a hover effect to the tab links with the following steps:

  1. Select a tab link that isn’t current
  2. Choose Hover from the States dropdown menu
  3. Style the tabs how you want them to appear on hover
  4. Select None from the States dropdown
  5. Add a transition in the Style panel with the desired easing and duration
 

Transitions 

To control the transition between different tab panes:

  1. Select any of the tab elements
  2. Go to the Element Settings panel
  3. Choose the easing from the Easing Method dropdown
  4. Set Fade In/out duration (ms)
 
Try Webflow — it's free

Production for this lesson

Directed by

-

Produced by

-

Written by

-

Article by

-

Edited by

-

Designs by

-

Need more help? Want to report a bug? Contact support
Have feedback on the feature? Submit feature feedback