How can we help you today?

How to Prevent ShortPoint Tabs Stacking on Top of Each Other on Mobile Devices

By default, ShortPoint Tabs items are stacked on top of each other on mobile devices:


vertical tabs


This article will demonstrate how to showcase your Tabs horizontally on mobile devices:


horizontal tabs


TABLE OF CONTENTS


Prerequisites


Step-by-step Tutorial

Follow the steps below on how to prevent Tabs from stacking on mobile devices:


Step 1: Edit the ShortPoint Web Part


NOTEBefore starting, make sure you already have a Tabs Design Element on your page. You can check out How to Customize the Tabs Design Element to learn more about it.


Tabs Design Element


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


Edit


Click the ShortPoint tag:


ShortPoint tag


Select the pencil icon:


pencil icon


Step 2: Copy the custom CSS code


Copy the custom CSS code below:


@media screen and (max-width: 768px) {
     .shortpoint-tabs-header [data-shortpoint-type=tab] {
         width: auto !important;
     }
 }


Step 3: Insert the Code Design Element

Click the plus icon to see the library of Design Elements:


plus icon


Use the search bar to look for Code and select it:

Code


Step 4: Paste the Custom CSS

Paste the code in the CSS field:


CSS field


Switch to the Design tab:


Design tab


Then, disable Sandbox Mode:


disable Sandbox Mode


Step 5: Save


Once done, click the green check mark:


green check mark


Click Save to apply all your changes:


Save


Congratulations! Your Tabs will now be displayed horizontally on mobile devices:


horizontal tabs


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 74 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