Comment from Web Axe
If designers weren't so silly we wouldn't have this problem to start with...
View ArticleComment from Daniel
Hey Lu, the ~ selector is siblings after the element, not before it - would have been great!
View ArticleComment from Gregor
sorry, my fault, :empty is to select empty HTML nodes, not to select empty input tags. They way Jonathan did it seems the only way to do it in CSS-only
View ArticleComment from Lu Nelson
Couldn't you use the sibling selector '~' instead of '+', and thus be able to put the label before the input? You'd have to wrap each label and input in a span or div. Browser support is less good for...
View ArticleComment from Adam
@GREGOR: CSS only recognizes the initial value of the input and doesn't update when the value changes.
View ArticleComment from Patrick H. Lauke
I like the general hacky approach. Of course, a few caveats on top of your own: - from an accessibility point of view, you should explicitly associate your label with the relevant input. Although...
View ArticleComment from Scott Gilbertson
Very cool. Problem one will be solved by the subject select in CSS level 4. At least I think that's what this is talking about:CSS Selectors4 Subject As I understand that, it would let you put the...
View Article