JSFiddle - React, Tailwind, and code Playground

by manoj dhiman

HTML

<div id="wrapper">
    <div class="outer">
        <a href="#">
        
        </a>
    </div>
    <img src="http://i.ytimg.com/vi/tntOCGkgt98/maxresdefault.jpg" alt="" class="circle" />
</div>

CSS

#wrapper {
    position: relative;
    width: 500px;
    height: 500px;
}

.outer {
  background-color: blue;
  height: auto;
  width: auto;
  z-index: 8;
  /* overflow: hidden; */
}

.outer a {
    display: block;
    width: 100%;
    height: 100%;
    z-index: 9;  
}

.outer a:hover {
    background-color: green;
}

.circle {
    display: block;
    background: red;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 11;
}