<head>
  <title>kurutto</title>
</head>
<body>
  <div class="wrap">
    <p class="center01"><span>1つ目</span></p>
    <p class="center02"><span>2つ目</span></p>
  </div>
</body>
.wrap{
  width:300px;
  margin: 0 auto;
  padding: 10px;
  background:#dfdfdf ;
}

.center01{
  background: url("http://life-thewild.com/wp-content/uploads/2016/11/bg_sample.jpg") no-repeat;
  font-size:14px;
  line-height: 10;
  text-align:center;
}

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

.center02{
  background: url("http://life-thewild.com/wp-content/uploads/2016/11/bg_sample.jpg") no-repeat;
  font-size:14px;
  height:200px;
  line-height:200px;
  text-align:center;
}

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

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.