im trying to use an image /icon on a tab header instead of text title(or may using both of them), i was testing using titleStyleClass seting an image background but doesnt work
my primefaces tab:
<p:tab titleStyleClass="tCliente" title="Vehiculo">
My css style
.tCliente
{
background-image: url(../images/logo_tropidatos.gif);
}
Thanks for your help :D
You should put:
background-image: url("../images/logo_tropidatos.gif") !important;
but after that i have a problem: the image repeat into the header. I tried to solve adding
background-repeat:no-repeat;
but is the same... can someone help?On PrimeFaces 3.0 and newer you can add a facet to override title on tabs:
Hope it helps.
try adding
display:inline-block;
try this way