Skip to content

Instantly share code, notes, and snippets.

@yayMark
Created March 9, 2018 23:43
Show Gist options
  • Save yayMark/533d7d1c3e9d4c35cc8c272bb139024a to your computer and use it in GitHub Desktop.
Save yayMark/533d7d1c3e9d4c35cc8c272bb139024a to your computer and use it in GitHub Desktop.
CSS attribute selectors
[class*="layout-area-"] {
background-color: hotpink;
}
is the same as
.layout-area-1,
.layout-area-2,
.layout-area-3,
.layout-area-4,
.layout-area-5 {
background-color: hotpink;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment