JSFiddle - React, Tailwind, and code Playground

by antyrat

HTML

<div id="imageHolder">
  <img src="https://www.medialets.com/wp-content/uploads/2014/07/woman-smiling-at-mobile-phone.jpg" />
  <div id="plus"><a href="#" onclick="alert('clicked');return false;">+</a></div>
</div>

CSS

body {
  padding:0;
  margin: 0;
}

#imageHolder { 
  position: relative; 
}

#imageHolder img { 
  display: block; 
  width: 100%; 
  height: auto; 
}

#plus { 
  position: absolute; 
  left: 43%;
  top: 43%; 
  width: 5.75%;
  height: 5.75%;
}

#plus a {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  display: block;
  text-decoration: none;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 3px solid yellow;
  color: yellow;
  border-radius: 10px;
  text-align: center;
}
#plus a:hover {
  border-color: #ff0000;
  color: #ff0000;
}