0
I have a selectOneRadio that has 3 options : Finishing, embargo and Shipping
<h:selectOneRadio value="#{solicitacaoImpressaoBean.entrega.tipoGuia}" class="tipoGuia" >
<f:selectItem itemValue="Acabamento" itemLabel="Acabamento" />
<f:selectItem itemValue="Embargo" itemLabel="Embargo" />
<f:selectItem itemValue="Expedicao" itemLabel="Expedição"/>
</h:selectOneRadio>
I want to put on the first the color black, the second the color blue and the third the color green.
I tried with css the following way:
.tipoGuia tr:nth-child(1) td label {
color : black
}
.tipoGuia tr:nth-child(2) td label {
color : blue
}
.tipoGuia tr:nth-child(3) td label {
color : green;
}
but it didn’t work. does anyone have any idea how to do it? Thank you.
I got it this way:
.tipoGuia tr td:nth-of-type(1){
color : black;
}
.tipoGuia tr td:nth-of-type(2){
color : blue;
}
.tipoGuia tr td:nth-of-type(3){
color : green;
}
Got it like this: . typeGuia tr td:Nth-of-type(1){ color : black; } . typeGuia tr td:Nth-of-type(2){ color : blue; } . typeGuia tr td:Nth-of-type(3){ color : green; }
– user2509556