<h1 class="padded-multiline">
  <span>How do I add padding to subsequent lines of an inline text element?</span>
</h1>
.padded-multiline { 
  background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/3/skyscrapers.jpg);
  line-height: 1.4; 
  padding: 120px 50px 50px 50px;
  width: 400px;
  margin: 20px auto;
}
.padded-multiline span { 
  background-color: black;
  color: #fff; 
  display: inline;
  padding: 0.5rem;
  
  /* Needs prefixing */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. //cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js