I had a go at at this question (this question isn\'t related at all to his question), and tried to solve it through applying CSS selectors depending on whether the checkboxe
Your CSS looks correct, but browser support, of course, varies, and where there is support, there will be bugs. Javascript would be much more reliable.