You can try creating an html <img> with a specific id
eg.
HTML
<img id="mybg" src="path/to/file" alt="never forget the blind folks!" />
CSS
img#mybg { position: fixed; //image will always be top: 0 left: 0 by default. display: block; //make it a block for width to work. width: 100%; //set default width height: 100%; //set default height max-width: 1920px; //set max width max-height: 1080px; //set max height z-index: -999999; //set z-index so it won't overlap any other element. }
For dynamic centering, you will have to use Javascript in conjunction with the window.onresize event.
If you need more information, I will edit my post accordingly.
A good alternative that is very easy to use (but stretches your background) would use a jquery backstretch plugin . This allows you to simply add a full-screen background image that will scale with resolution (which is not exactly what you want, but the best alternative I could think of).
source share