<style>
div {
  font-family: Ahem;
  font-size: 20px;
  width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre;
}
img {
  height: 50px;
  width: 50px;
  background: green;
}
.overflow {
  background: red;
  position: relative;
}
</style>
<div><img><img class=overflow></div>
