quick question.Take this html
<form id="the_form">
<input type="checkbox" value="ideal" name="ideal_drive" id="ideal"><label for="ideal">This is a test only only</label><br>
...
Say I want to select the text in the label and give it a different colour. I tried this rule
#the_form label[for='ideal']{
color:yellow;
}
It works ok but not in IE7. SO, I was thinking to use the :first-child
selector:
#the_form label:first-child{
color:yellow;
}
but it doesn't work at all.
Any idea what I can use to make sure it works on every browser?
thanks