Test background transparent image

by mmarcon

HTML

<div class="image">
    <a href="#">Hello</a>
</div>

CSS

.image {
    width: 100px;
    height: 100px;
    -webkit-background-size: cover;
    background-repeat: no-repeat;
    background-image: url(http://farm7.staticflickr.com/6133/5919054120_559f180b3c_m.jpg);
    background-position: center center;
    margin: 20px auto;
    position: relative;
}

.image a {
    position: absolute;
    bottom: 3px;
    left: 3px;
    display: block;
    text-decoration: none;
    text-transform: uppercase;
    color: #000;
    background-color: transparent;
}

.image a:hover {
    border: 1px solid transparent;
}