<div class="block1">
  <div class="logo"></div>
</div>
<div class="block2">
  <div class="logo"></div>
</div>
<div class="block3">
  <div class="logo"></div>
</div>
                  
.logo {height: 100px;
width:100px;}
.block1 .logo {
background-color: red;
}
.block2 .logo {
background-color: green
}
.block3 .logo {
background-color: blue;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.