JSFiddle - React, Tailwind, and code Playground

HTML

<div class="wrap">
    <img src="http://placehold.it/350x150">
    <a href="#">
        <span>Anchor</span>
    </a>
</div>

CSS

* {
    box-sizing: border-box;
}

body {
    height: 100%;    
}

.wrap {
    height: auto;
    margin: 2em;
    overflow: hidden;
    padding: 1em;
    position: relative;
    width: 80%;
}

.wrap img {
    width: 100%;
}

.wrap a {
    display: block;
    left: 2em;
    right: 2em;
    bottom: 2em;
    top: 2em;
    position: absolute;
    text-align: center;  
    border: 1px solid red;
}

.wrap a span {
    position: absolute;
    top: 50%;
    margin-top: -1em;
    line-height: 2em;
    width: 100%;
    display: block;
}


.wrap a:hover {
    background: red;    
}