css background img cover code example
Example 1: css background full width
body {
background: url(img/bg-image.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
Example 2: how to scale a bg image acc to size of div
/* One way */
background-size: cover;
/* Other option */
background-size: contain;