CodePen

HTML

            
              <article>
  <a href="http://example.com">
    <div class="meta">
      <p class="title">This is an example title spanning multiple lines</p>
      <p class="author">By Jon Smith</p>
    </div>
    <img src="http://lorempixel.com/320/240/animals"/>    
  </a>
</article>
            
          
!

↑ Insert the most common viewport meta tag

CSS

            
              article {
  width: 320px;
  height: 240px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid #ccc;
}
article a {
  position: relative;
  display: block;
  height: 100%;
  background: #000;
  color: #fff;
  font-size: 0;
  text-align: center;
}
article a:before {
  vertical-align: middle;
  content: '';
  display: inline-block;
  height: 100%;
  width: 0;
}
article .meta {
  vertical-align: middle;
  position: relative;
  z-index: 2;
  display: inline-block;
  font-size: medium;
}
article .meta p:first-child {
  font-size: 1.5em;
}
article img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.5;
  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 ..................