Is it possible to align the buttons in a mat-tab-group to the left, center, and right positions? I am using mat-tabs. How can I have elements with "left" align to the left, elements with "center" in the center, and elements with "right" align to the right?
I attempted to use mat-align-tabs="center"
to center some elements, but it did not work as expected.
I tried the following CSS code, but it only worked for one case. I am struggling to align items in all three sections (center, right, and left).
.mat-tab-labels {
display: flex;
justify-content: center !important;
}
Could someone please assist me in placing the elements to the left, center, and right while ensuring that all buttons fit on the screen?
code
<mat-sidenav-container fxFlexFill>
<mat-sidenav-content fxFlexFill>
<mat-tab-group mat-align-tabs="center">
<mat-tab label="Left">Content 1</mat-tab>
<mat-tab label="Left">Content 2</mat-tab>
<mat-tab label="Center">Content 3</mat-tab>
<mat-tab label="Center">Content 4</mat-tab>
<mat-tab label="Center">Content 5</mat-tab>
<mat-tab label="Center">Content 6</mat-tab>
<mat-tab label="Right">Content 7</mat-tab>
<mat-tab label="Right">Content 8</mat-tab>
<mat-tab label="Right">Content 9</mat-tab>
<mat-tab label="Right">Content 10</mat-tab>
<mat-tab label="Right">Content 11</mat-tab>
</mat-tab-group>
</mat-sidenav-content>
</mat-sidenav-container>
Example