Hi guys
I was wondering if anyone can help. I'd like to be able to highlight checkbox and radio buttons when they are selected. I can do the hover no problem with the code below, but I would really like to have the label permanently highlighted when it is selected / checked. Note - I will use a different colour than the hover. Is this possible
<input type="checkbox" value="checklist" id="checklist" name="checklist"/>
<label for="checklist">Item 1</label>
<label for="checklist">Item 2</label>
label:hover, label:active {
background:yellow;
}
Cheers
Del



Reply With Quote

. You're welcoem.

Bookmarks