Use the following code to Select Element By Specific attribute value

[class^="top"] {
background: yellow;
}

or[class*="me"] {
background: yellow;
}

It doesn’t have to be the whole value.

3 thoughts on “Attribute selectors – CSS [attribute*=value] Selector | Select Element By Specific attribute value

  1. Pingback: stapelstein
  2. Pingback: toybf
  3. Pingback: essentials

Comments are closed.