Target CSS classes

March 17, 2021 1 min read
div[class^="foo"] {} /* target classes that start with "foo" */
div[class$="foo"] {} /* target classes that end with "foo" */
div[class*="foo"] {} /* target classes that contain "foo" */