Stretch background image over whole page

This code allows to add a custom background image and stretch it over the whole page making it cover the whole background by automatic resizing. This snippet needs IE9+ besides standard versions of other browsers. Replace the image url given in the snippet as "images/bg.jpg".

This code snippet was originally contributed by Prôductions Imvu. Go to the author' imvu website.