Centering Tabs in Rich Content Editor

DTrishman
Tera Contributor

Good evening,

 

I'm looking for some guidance on centering tabs in the Rich Content Editor. The topic page I'm building has 5 tabs. With each set to 20% width, the last tab is forced down into a second row. Somehow 5 x 20% doesn't equal 100.

2024-08-26 18_43_42-.png

 

 

In addition to that, I get some weird behavior where the tabs shift all over the widget as you select different tabs.

2024-08-26 18_46_05-Wellness - Employee Center.png2024-08-26 18_46_40-Wellness - Employee Center.png

 

 

I've seen this accomplished on several demo pages for topic microsites but unsure how to achieve it with the settings in the editor.

2024-08-26 18_40_30-Employee Center Academy_ Dynamic Topic Microsites and Rich Content Editor - YouT.png

 

 

 

 

Any help would be greatly appreciated!

6 REPLIES 6

Pooja_Patil
ServiceNow Employee
ServiceNow Employee

@DTrishman, when tab is selected there is a border around it which would also take some space, then the tab just jumps based on the space available. See if reducing 20% to 18 or 15% helps.

 

Reducing the % does help them to stay on the same line of the tab list, but then when selecting them, the border collapses around the active tab and it moves from its position in the tab list still.

 

2024-08-29 14_03_53-Wellness - Employee Center.png2024-08-29 14_04_07-Wellness - Employee Center.png

SMiller7
Giga Expert

@Pooja_Patil and @DTrishman - I am trying to make some updates to the css of our tabs and we're having trouble finding the CSS that controls it. Do you know where those CSS files are stored? Currently I have no border or anything around the tabs, making usability very difficult.

Pooja_Patil
ServiceNow Employee
ServiceNow Employee

We load same stylesheet that loads in the portal to adhere to theming. Can you share the screenshot?