How can I align text to the bottom right of a big <a> element inside a div?
Here is what I have, but I want the text at the bottom of the box. I’ve searched a lot and nothing has worked for me:
<div class="thumbnail">
<a href="http://link.com">Link to somewhere</a>
</div>
with the following css:
.thumbnail{
width: 200px;
height: 200px;}
.thumbnail a{
display: block;
height: 100%;
width: 100%;
text-align: right;
background-color: lightgrey;}
Thank you
I changed your HTML and put the entire thing in an
<a>tag so it is all clickable. jsFiddle Here.HTML:
CSS:
EDIT:
To do it WITHOUT putting an div inside the
<a>, try this.