Prev | Current Page 116 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

png"] {
?‹® declarations
}
This example matches img elements with a src attribute value that ends with the
characters ".png".
Finally, we can use the *= operator to make an attribute selector match elements
that have an attribute which contains the specified value:
The Ultimate CSS Reference 72
div[id*="foo"] {
?‹® declarations
}
This example matches div elements whose id attribute value contains the characters
"foo".
Compatibility
Opera Safari Firefox Internet Explorer
9.2 3.0 2.0 1.3 2.0 1.5 1.0 7.0 6.0 5.5
Buggy Full Full Full Buggy Buggy Buggy None None None
Internet Explorer 7 doesn??™t support the partial matching of attribute values.
Safari versions up to and including 3 will always ignore the case of HTML attribute
values, even for attributes that are, in fact, case sensitive.
Firefox versions up to and including 2, will ignore the case of some attributes that
should be compared in a case-sensitive manner: for example, the id and for
attributes.
Selector Grouping
We can group selectors using a comma (,) separator.


Pages:
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128