<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    .container {
  position: relative;
  max-width: 800px; /* Maximum width */
  margin: 0 auto; /* Center it */
}

.container .content {
  position: absolute; /* Position the background text */
  bottom: 0; /* At the bottom. Use top:0 to append it to the top */
  background: rgb(0, 0, 0); /* Fallback color */
  background: rgba(0, 0, 0, 0.5); /* Black background with 0.5 opacity */
  color: #f1f1f1; /* Grey text */
  width: 100%; /* Full width */
  padding: 20px; /* Some padding */
}
    </style>
</head>

<body>
    <div class="container">
        <img src="background.jpg" alt="Notebook" style="width:100%;">
        <div class="content" style="color: #0B7FA3;  box-shadow: 0 0 0 0.2rem rgba(25, 165, 207, 0.356);">
          <h1>Heading</h1>
          <p>Lorem ipsum..</p>
        </div>
      </div>
</body>
</html>