CodePen

HTML

            
                <div class="fx">

    <img src="">
            <a class="dido">x</a>

</div>
      


            
          
!

↑ Insert the most common viewport meta tag

CSS

            
              .fx
{

    margin: 2px;
    width: 35px;
    height: 35px;
    border: 1px solid #000000;
    overflow: hidden;
    position: relative;
background: url(http://bazitarsnak.com/avatars/noavatar.png);

}

.fx img {
    width: 35px;
    height: auto;
    position: relative;
}

.dido {
  color: white;
  position: absolute;
  z-index: 1;
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................