Forum Moderators: not2easy
.bgfdfcfd
{
background-color:#fdfcfd;
}
Could be used like this and would inherit to the checkboxes unless the checkbox overides it.
<td class=bgfdfcfd>
R <input type=checkbox name="R">
U <input type=checkbox name="U">
F <input type=checkbox name="F">
W <input type=checkbox name="W">
C <input type=checkbox name="C">
</td>
But you have to do it like this (which is a maintenance nightmare!)
<td>
R <input class=bgfdfcfd type=checkbox name="R">
U <input class=bgfdfcfd type=checkbox name="U">
F <input class=bgfdfcfd type=checkbox name="F">
W <input class=bgfdfcfd type=checkbox name="W">
C <input class=bgfdfcfd type=checkbox name="C">
</td>
Is there a workaround? Thanks
.bgfdfcfd input {
background-color:#fdfcfd;
}
Also possible, the attribute selector, this will set a background for checkboxes only, but is not supported by IE:
.bgfdfcfd input[type="checkbox"] {
background-color:#fdfcfd;
}