Skip to content

Instantly share code, notes, and snippets.

@droberts-sea
Created September 12, 2017 17:50
Show Gist options
  • Save droberts-sea/4d28e18b17a72763ffe21801dbf97466 to your computer and use it in GitHub Desktop.
Save droberts-sea/4d28e18b17a72763ffe21801dbf97466 to your computer and use it in GitHub Desktop.
#orange {
background-color: orange;
}
.one .two .three .four .five .six .seven .eight .nine .ten .eleven h1 {
background-color: teal;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Specificity</title>
<link rel="stylesheet" href="specificity.css">
</head>
<body>
<div class="one">
<div class="two">
<div class="three">
<div class="four">
<div class="five">
<div class="six">
<div class="seven">
<div class="eight">
<div class="nine">
<div class="ten">
<div class="eleven">
<h1 id="orange">
This is a test!
</h1>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment