Robert James wrote: > I normally like to put the label first, and enclose the input element > within it. Is there anyway I can use CSS to select all labels that > *enclose* checked radio buttons?
I don't think there is. The design of CSS is meant to make it relatively easy to implement, and specifically to render progressively. So all selectors [1] are based upon ancestors and previous siblings, which you can track in a single pass through the document. If implementations had to worry about descendants and succeeding siblings, they couldn't render the document nearly as quickly. This is relatively easy to do in Javascript, and as it really describes the behavior of your page as much as it's design, Javascript is fairly appropriate to solving this case, as long as you don't mind some of your audience not seeing the effect. All that said, if you didn't mind using markup that puts the label after the input element, you could use CSS positioning or floating techniques to display the label first and then apply the adjacent siblings selector to style it as you would like. Good luck, -- Scott [1] There are some unfortunate exceptions: ":last-child" and especially ":nth-last-*" break this paradigm. I know of no others, though. ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/