"Layers" in HTML and CSS are stacked by using the z-index property. The lower the value of the z-index declaration, the lower your item will stack. Give the div (or container) in the front the highest z-index declaration and that which you want in the back should have the lowest z-index declaration.
W3 Schools has great information of quickly learn the z-index property.