How can we help you today?

How to Set a Separate Color for Each Tab of ShortPoint Tabs Design Element

By default, you can only assign two colors as background for the Tabs Design Element. The first background color is set in the Design tab for the active tab:

design tab


The second background color is set in the Advanced tab for the inactive tabs:


Advanced tab


This article will demonstrate how to set different colors for each tab using Custom CSS:


different tab colors


TABLE OF CONTENTS


Prerequisites


Step-by-step Tutorial

Follow the steps below to learn how to set different colors for each tab:


Step 1: Edit the ShortPoint 

Go to the SharePoint page you want to use and click Edit:


Edit


Click the cross icon to close the Toolbox:


cross icon


Select the ShortPoint tag:


ShortPoint tag


Click the Edit Properties icon:


Edit properties icon


Step 2: Edit the Tabs Design Element


NOTEBefore proceeding, make sure you already have the Tabs Design Element on your page. Go to How to Customize the Tabs Design Element to learn how to insert it.


Tabs Design Element


Click the Tabs tag:


Tabs tag


Select the cogwheel icon:


cogwheel icon


Step 3: Copy the custom CSS code

Copy the Custom CSS code below:


.sp-type-tab.shortpoint-li.shortpoint-child:nth-of-type(1) .shortpoint-tab-title {
    background-color: tomato !important;
}

.sp-type-tab.shortpoint-li.shortpoint-child:nth-of-type(2) .shortpoint-tab-title  {
    background-color: red !important;
}

.sp-type-tab.shortpoint-li.shortpoint-child:nth-of-type(3) .shortpoint-tab-title {
    background-color: green !important;
}

.sp-type-tab.shortpoint-li.shortpoint-child:nth-of-type(4) .shortpoint-tab-title {
    background-color: yellow !important;
}
Notes
1. The active tab will always have the theme color of the page. (You can update it in the Design tab).
2. You can have more than 4 tab items. In this case, simply copy the code line for the item and update its index (for example, the 5th tab will look like this: .sp-type-tab.shortpoint-li.shortpoint-child:nth-of-type(5) ).

Step 4: Paste the code

Click the next icon:


next icon


Switch to the Custom CSS tab:


Custom CSS tab


Paste the code in the field provided:


paste code


Customize the background-color values for each tab:

Background Color


Once done, click the green check mark:


Green checkmark


Step 5: Save

Click the eye icon to see your page in real-time:


eye icon


Click Save to apply all your changes:


Save


That’s it! You can now customize the color of each tab inside the Tabs Design Element.


Related articles:

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

World's best intranet sites are designed using ShortPoint

Get started today! Learn more
See all 59 topics

Start a trial

Ignite your vision. Install ShortPoint directly on your site, or play in sandbox mode. No credit card required.

Get started today

World’s best intranet sites are designed using ShortPoint

Thousands of companies using ShortPoint everyday to design, brand and build award winning intranet sites.

Get started Learn more