Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<div id="container">
    <div id="background">
    Text to have as background
    </div>
  <br />
    Normal contents
</div>
 
#container {
   position: relative;
}
#background {
   position: absolute;
   top: 0;
   left: 0;
   bottom: 0;
   right: 0;
   z-index: -1;
  height:10000px;
  
  background-image:url(http://estaticos01.marca.com/imagenes/2014/10/16/futbol/1413476115_extras_noticia_foton_7_1.jpg)
}
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers