This topic has not yet been rated - Rate this topic

Substring property

Matches the specified substring of a property value.

[attr*=val] { sRules }

attr

Must be either an identifier or a string.

val

Must be either an identifier or a string.

sRules

String that specifies one or more cascading style sheet property/value pairs.

This property is enabled only in standards-compliant mode (strict !DOCTYPE).

Attributes are case-sensitive.

The following style rule selects any property that contains the character string "ai":

<style>
    .test        {display: none;}
    [attr*="ai"] {display: block;}
</style>

<div class="test" attr="Contains">Test for [*=] (Substring) succeeded.</div>
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.