Skip to main content
Aug 17, 2022 6:30 AM UTC
Question

How to center align the tabset

I would like to center align the tabset. I have also attached the image for reference.

 

Note: I inspected and added the below CSS it worked. But if I try writing in custom CSS then it didn't work. So I need the CSS to be added.

 

justify-content: center;

7 replies

Aug 17, 2022 8:19 AM UTC

Not sure about CSS.

But we approached this use case with "Button Bar" and "Expression". And, its working fine.

Aug 17, 2022 8:39 AM UTC

I need that tab to be in the middle

Aug 17, 2022 1:36 PM UTC

try below code.. its working for me..

.widget-ptcstabset::part(tabs-header)::part(tabs) {
 justify-content: center;
}