Pergunta

I have the following html:

<span wicket:id="votevaluenotifier">
<label name="currentVoteValue" id="currentVoteValue" wicket:id="currentVoteValue" />%
</span> 

I'm trying to style the result in CSS using:

.currentVoteValue
{color:#CC3300;
}

but no joy. I know I'm missing something obvious but what? I tried using votevaluenotifier instead of currentVoteValue but no dice.

Apologies - I'm a bit of CSS newbie.

Foi útil?

Solução

I don't know wicket, but if you have

<label id="currentVoteValue">

you should style it using

#currentVoteValue {
    color:#CC3300;
}

because # begins an ID selector and . a class selector

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top