Lorem ipsum
#background { width: 100%; left: 0px; top: 0px; position: absolute; z-index: 0; } #content { z-index: 2; position: absolute; } #background img { width: 100%; height: 100%; } #bg { position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; } #bg img { position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: auto; min-width: 50%; min-height: 50%; }