see state inside and give further

by Alexander Zonov

HTML

<div class="state">
  <input type="checkbox">Show
</div>
  
<div class="display"></div>

CSS

.state {
  
}

.display {
  background-color: rgba(0, 0, 255, 0.5);
  width: 100px;
  height: 100px;
}

.state+.display {
  display: none;
}