Centering Tabs in Vaadin 14


I’m trying to center a Tabs component, and having trouble. I’ve found mention of ways to do this in Vaadin 8, but it doesn’t look to work these days. I’ve tried various programmatic and CSS suggestions I’ve found online to no avail.


| Some Stuff |     |Tabs In The Middle (centered)|     | Some Other Stuff (pushed all the way to the right)|

Any suggestions or things I should look into?

Thanks in advance.

Try this: tabs.setFlexGrowForEnclosedTabs(1);
Also look at the tab component documentation: