Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [SOLVED ] What is this selector?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #151645
    Rugg
    Participant
    [class*='example-'] {  
    
    }
    

    Will this select all classes starting with example-? Is there any documentation describing the syntax in detail?

    Thanks

    #151647
    __
    Participant

    Will this select all classes starting with example-?

    Yes.

    More specifically, it will select all elements with “example-anywhere in their class attribute, be it at the beginning, end, or somewhere in the middle.

    w3 spec

    css-tricks article

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.