I want some method to convince CSS that when I click on one of the children inside the parent element don't consider that I clicked also on the parent element. I want you to try clicking on one of the children inside the parent.
.parent{
background: blue;
padding:20px;
text-align: center;
margin: 0 auto;
height: 300px;
width: 300px;
}
.parent:active{
background: #ddd;
}
.child{
background: red;
float: left;
padding: 5px;
height: 150px;
width: 150px;
font-size: 4em;
}
.child:nth-child(odd){
background: pink;
}
<div class="parent">
<div class="child">Click me</div>
<div class="child">Click me</div>
</div>