CSS selector for label using "for" attribute in IE 6,7

css, css-selectors, internet-explorer

Solution

Since IE6 doesn't support attribute selectors, you might consider specifying a class attribute to your `<label />` and select it with it. (See How to workaround: IE6 does not support CSS “attribute” selectors)

With IE7, you could just do this:

label[for="title"] {
   font-weight: bold;
   /* ... */
}

See jsfiddle.net/GWNXq.

Problem

I have a label in my web page as label for="title" How can i style this specific label element?

Original source

Related problems