The Tabs element enables you to add responsive, tabbed content to your project. This article will cover three aspects of Tabs:

  • Adding Tabs
  • Adding content to the Tabs
  • Styling Tabs

Adding 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 section, 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 Tab Pane on the canvas and use the left and right arrows on the keyboard to select adjacent tab panes.
 

Adding 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. 

Styling 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 some 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. Go to the States drop down menu and select Hover
  3. Style how you want the tabs to appear when hovered over
  4. Go back to the States drop down and select None
  5. Under the Style Panel, add a transition with the desired easing and duration
 

Transitions 

You can also control the transition between different Tab Panes. Here are the steps:

  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)