I would like to vertically center text next to the image on the left but can seem to do it
.socialShare {
position: relative;
&__CTA {
position: absolute;
bottom: -30px;
background-color: #d0d0d0;
padding-right: 18px;
height: 38px;
img {
display: inline;
height: 38px;
width: 38px;
}
p {
display: inline;
}
}
}
<div class="socialShare">
<strong>
<img alt="" src="https://www.asthma.org.uk/globalassets/health-advice/asthma-attacks/what-to-do-if-youre-having-an-asthma-attack.jpg" height="350" width="700" />
</strong>
<div class="socialShare__CTA">
<img src="dist/images/arrow.jpg" alt="">
<p>Share image</p>
</div>
heres a codepen for an example what I've got.