In IE6?... ;-)
well, kind of...
you can use any of the following... but they will only check for the
"existence" of the attribute, not the value... (which for readonly
should be okay) only the modern browsers will support matching of actual
values within the attribute (e.g. size="1" vs size="8").
*[readonly] {
/* CSS for all nodes with readonly attribute */
}
input[readonly] {
/* CSS for input nodes with readonly attribute */
}
textarea[readonly] {
/* CSS for textarea nodes with readonly attribute */
}
select[readonly] {
/* CSS for select nodes with readonly attribute */
}
cheers,
steve
Brian Cummiskey wrote:
I'm looking to add a simple background color to some form fields. all
of these fields happen to have the readonly="readonly" attribute
attached to them.
Without classing each input box, is there a way with css that works in
IE6 to target those inputs based on the readonly attribute?
Thanks
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/