JSFiddle - React, Tailwind, and code Playground

by pj_js15

HTML

<div class="imagewrap">
    <img src="https://www.google.com/logos/2012/opening_ceremony-2012-hp.jpg">
    <input type="button" class="button1" value="Button 1" />
   
    <input type="button" class="button3" value="Button 3" />
</div>

CSS

.imagewrap {
  display: inline-block;
  position: relative;
  max-width: 200px;
  border: 1px solid red;
}

img {
  width: 200px;
}

.button1 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.button2 {
  position: absolute;
  bottom: 0;
  right: 0;
}

.button3 {
  position: absolute;
  right: 50%;
  top: 50%;
}