How to show full height background image?

You can do it with the code you have, you just need to ensure that html and body are set to 100% height.


html, body {

body {
    background-color: white;
    background-image: url('');
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: left top;

CSS can do that with background-size: cover;

But to be more detailed and support more browsers...

Use aspect ratio like this:

 aspectRatio      = $bg.width() / $bg.height();