Skip to content

Instantly share code, notes, and snippets.

@jaonoctus
Last active December 8, 2015 18:13
Show Gist options
  • Save jaonoctus/7241f1e57e606c524517 to your computer and use it in GitHub Desktop.
Save jaonoctus/7241f1e57e606c524517 to your computer and use it in GitHub Desktop.
Styling an HTML element
[class*="value"]{
/* Your code here */
background: red; /* eg */
}
<html>
<head>
<link type="text/css" rel="stylesheet" href="file.css" />
</head>
<body>
<!-- All items containing "value" class will be affected -->
<div class="class1">xa</div>
<div class="value">bl</div>
<span class="value">au</span>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment