I am using a tab section on my website, but after 6 tabs or so, I want the tabs to start on a new row and not go to the edge of the page.
Hey amyncuih,
Thank you for the inquiry.
You can use this css code to limit the tab section title row to a maximum of 6 items.
#top .av-tab-section-tab-title-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
}
#top .av-tab-section-tab-title-container > * {
flex: 0 0 calc((100% / 6) - (10px * 5 / 6));
max-width: calc((1310px - (10px * 5)) / 6);
box-sizing: border-box;
}
Best regards,
Ismael
I have many tab sections on my site. How can I limit the tabs by individual tab sections on different pages?
Hi,
Thank you for the update.
You can apply a custom css class (e.g “av-tab-section-title-limit”) to the tab sections where you need the modifications, then adjust the selectors in the css rules accordingly. Please check this documentation for more information on how to apply custom css class names to the elements.
— https://kriesi.at/documentation/enfold/add-custom-css/
#top .av-tab-section-title-limit .av-tab-section-tab-title-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
}
#top .av-tab-section-title-limit .av-tab-section-tab-title-container > * {
flex: 0 0 calc((100% / 6) - (10px * 5 / 6));
max-width: calc((1310px - (10px * 5)) / 6);
box-sizing: border-box;
}
Best regards,
Ismael
