<div class="wrap">
  <div class="resizer"></div>

  <div class="x">
    ✖
    <span>drag the spot!</span>
  </div>
</div>
.resizer {
  width: 100px;
  height: 100px;
  overflow: hidden;
  opacity: 0;
  resize: both;
}

.wrap {
  width: min-content;
  position: relative;
}
.x {
  pointer-events: none;
  position: absolute;
  bottom: -10px;
  left: calc(100% - 20px);
  line-height: 0;
  color: red;
  font-size: 50px;
}
.x span {
  white-space: nowrap;
  vertical-align: middle;
  color: black;
  text-transform: uppercase;
  font: 600 15px/1 system-ui, sans-serif;
  display: inline-block;
  transform: translate(45px, -10px);
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.