I am trying to place the image above the text content. I.E something like below
https://i.stack.imgur.com/5L4FG.png
.button-link {
background: #DBBC26;
border-radius: 4px;
color: #ffffff;
display: block;
font-size: 14px;
height: 60px;
line-height: 60px;
text-align: center;
width: 190px;
font-weight: 600;
text-transform: uppercase;
padding: 0;
letter-spacing: .2px;
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<a class="button-link" href="#">Download</a>
2
Answers
try this
So you have a link and an image, and you want to stack the image on top of the text in link.
and you have defined your link
<a class="button-link" href="#">Download</a>
and an image<img src="#" alt="my image" />
The next thing you need to do is merge themwould be better if you wrapped link content inside a div
here’s an example: https://jsfiddle.net/fatgamer85/gzmzo4un/