I have a selectOneRadio which 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 the first one in black, the second in blue and the third in green.
I tried with css as follows:
.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 did not work. Anyone have any idea how to do this? grateful.
I was able to do this:
.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;
}