<head>
  <title>kurutto</title>
</head>
<body>
  <div class="wrap">
    <div class="center01">
      <p><span>テキストが</span></p>
      <p><span>複数行でも</span></p>
      <p><span>一行でも同じ</span></p>
    </div>
  </div>
</body>
.wrap{
  width:50%;
  margin: 0 auto;
  padding: 10px;
  background:#dfdfdf ;
}

.center01{
  background: url("http://life-thewild.com/wp-content/uploads/2016/11/bg_sample.jpg") repeat;
  font-size:16px;
  line-height:1;
  text-align:center;
  padding-top: 10%;
  padding-bottom: 10%;
  box-sizing:border-box;
}

.center01 span{
  background: rgba(0, 0, 0, 0.8);
  color:#fff;
  padding: 5px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.