<div class="box">
  <span>Resize me.</span>
</div>
.box {
  width: 50vw;
  height: 50vh;
  overflow: hidden;
  resize: both;
  min-width: 150px;
  min-height: 60px;
  display: grid;
  place-items: center;
  background: #eee;
  border-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUCAYAAAAcaxDBAAABgElEQVR4Xu3YQW7CQBQFQbj/oZMNysKR+JhpYIQq2wkPUzQmyvXiJxW4pmvGLkDjCIB+IejP4TUd3+TV85js/twOha6CTY8HehCYwKZzoEDbBo7FTes73Lb+rnGri7ldFdApoZPnQE+CTb8OdBIazs8CTk/30dvYR5/8yXsmUIVODbTnPvKt57+1s8A73Lb8HfqqKLZ6d5/8ktrqNWx1MUCbz83036LV8+YqH1zZodBVsOnxD1I0vwa0cdzqW34qbPU8Jrs/t0Ohb33Br34yoLEwUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDynUKCxQDz3C4N8JFUrC7rnAAAAAElFTkSuQmCC")
    28 / 28px / 0 round;
  border-width: 28px;
  border-style: solid;
}

body {
  height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.

Packages

This Pen doesn't use any packages.