I am not sure if this possible in CSS, but is there anyway to style the label if its radio button is active?
http://jsfiddle.net/ASmsX/
If its not possible in CSS, why?
Is this possible in CSS?
Page 1 of 11 Replies - 297 Views - Last Post: 05 October 2012 - 09:21 AM
Replies To: Is this possible in CSS?
#2
Re: Is this possible in CSS?
Posted 05 October 2012 - 09:21 AM
Hello: I can't really take credit for this one, but I found this on SO:
http://stackoverflow...o-buttons-label
Basically it boils down to a rule like this:
Where the '+ label' means a label after an element that matches the preceding expression.
http://stackoverflow...o-buttons-label
Basically it boils down to a rule like this:
input[type=radio]:checked+label
{
background-color: blue;
}
Where the '+ label' means a label after an element that matches the preceding expression.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|