I have two tabs and I want the headers to be 50 % of the total lenght.
I added the attribute className with my custom value p-tabview-50, like this:
Code: Select all
<div className="p-col-12 p-md-6 p-lg-6 p-col-6">
<div className="card card-w-title">
<TabView className="p-tabview-50">
<TabPanel header="Status">
<div className="messages-title">
<span>November 13, 2018</span>
</div>
</TabPanel>
<TabPanel header="Messages">
<div className="messages-title">
<span>November 13, 2018</span>
</div>
</TabPanel>
</TabView>
</div>
</div>
Code: Select all
<div class="p-tabview p-component p-tabview-50">
Code: Select all
.p-tabview-50 {
.p-tabview-nav {
li {
width: 50%;
}
}
}
If I add that width: 50% css code manually to the <li> element in the browser inspector, then it behaves ok.
Any help? Thanks!