Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <div class="container">
    <img src="http://placehold.it/300x300"/>
    <div class="bg-text">
      <h2>some text</h2>
    </div>
  </div>
</body>
</html>
 
.container {
  position: relative;
}
img {
  display: block;
  width: 100%;
}
.bg-text {
  background: red url('http://placehold.it/50x96/000000') repeat-x;
  min-height: 96px;
  position: absolute;
  bottom: 0;
  width: 100%;
}
h2 {
  margin: 0;
  color: #fff;
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
davidpauljuniorpro
0viewers