JSFiddle - React, Tailwind, and code Playground

HTML

<div class="bg" id="normal">
  <a id="click1"></a>
  <a id="click2"></a>
</div>

<div class="bg" id="stretchy">
  <a id="click1"></a>
  <a id="click2"></a>
</div>

CSS

.bg {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/c/c7/Domestic_shorthaired_cat_face.jpg');
  background-size: 100% 100%;
  display: block;
  position: relative;
}

#stretchy {
  width: 400px;
  height: 700px;

}

#normal {
  width: 1200px;
  height: 800px;
}

#click1 {
  position: absolute;
  left: 48%;
  top: 50%;
  width: 10%;
  height: 10%;
  border: 1px solid red;
  cursor: pointer;
}

#click2:hover, #click1:hover {
  background: rgba(255, 0, 0, 0.3);
}

#click2 {
  position: absolute;
  left: 70%;
  top: 51%;
  width: 10%;
  height: 10%;
  border: 1px solid red;
  cursor: pointer;

}