Demo: [for] attribute selectors in IE7 - terkel.jp



label[for="foo"] {
    background-color: yellow;
}
label[htmlFor="bar"] {
    background-color: red;
}
label[htmlFor="baz"],
label[for="baz"] {
    background-color: green;
}

← Back to the Article