I'm trying to make an image responsive, and have the text also be responsive, but align in a relative manner so it matches up and doesn't ruin the output.
This is my html:
.checks {
position: relative;
display: inline-block;
height: auto;
max-width: 50%;
}
.competitive {
position: absolute;
display: inline-block;
bottom: 80%;
font-family: 'museo_slab500';
font-size: 150%;
color: #fff;
padding: 0 20px;
width: 50;
line-height: 150%;
}
<div class="checks">
<img src="http://jqlconsulting.com/wp-content/uploads/2015/06/forcheckmarks2-Converted.png" alt="" style="max- width:100%"/>
<h2 class="competitive"><span>3 Tiered Quality Review Process</h2></span>
</div>
What am I doing wrong?