In a table cell, I have a set of radio buttons with a background color that differs from the rest of the page.
At times, based on another input, I need to disable certain radio buttons. When a radio button is disabled, its interior color blends with the table cell's background and the circle grays out slightly, giving the appearance of disappearing. However, upon closer inspection, the button is still there.
I've been struggling to find a CSS solution to change the appearance of disabled radio buttons. My current attempt looks like this:
.radio {
background-color: #FFFFFF;
}
.radio:disabled {
background-color: #FFFFFF;
}
Do I need to use images instead?
UPDATE The issue is not with the background, but with the interior of the radio button. When disabled, the interior color matches the background color of the table cell. Perhaps I can address this by changing both the table cell and the radio button.