You can get this effect using display table-cell
body {
background: red;
}
h1 {
display: table-cell;
padding-right: 10px;
}
span {
width: 100%;
display: table-cell;
background: url(http://i.stack.imgur.com/23XVz.png) repeat-x 0 center;
}