To eliminate the padding inside a Tab of the Primefaces TabView component, I defined a new style in my CSS file:
.tabviewleft .ui-tabs .ui-tabs-panel {
padding: 0px 0px;
}
When I attempted to apply this new style to the Tab, it did not take effect:
<p:tab id="fieldCategoryTab" title="category" styleClass="tabviewleft" >
I then tried applying it to the TabView component, but that also failed:
<p:tabView id="tabViewLeft" styleClass="tabviewleft">
Finally, when I placed a div outside the TabView, the style worked as intended:
<div id="teste" class="tabviewleft">
Why is it necessary to create a div outside the TabView in order to apply the style?
Is there a way to directly apply the style to the Tab or TabView without using an additional div?
Thank you in advance for any insights provided.