1body {
2 background-image: url(images/background.svg);
3 background-size: cover; /* <------ */
4 background-repeat: no-repeat;
5 background-position: center center; /* optional, center the image */
6}
1html {
2 background: url(images/bg.jpg) no-repeat center center fixed;
3 -webkit-background-size: cover;
4 -moz-background-size: cover;
5 -o-background-size: cover;
6 background-size: cover;
7}
1body {
2 background-position: center;
3 background-repeat: no-repeat;
4 background-size: cover;
5}
1body {
2 background-position: center;
3 background-repeat: no-repeat;
4 background-size: contain;
5}
1-webkit-background-size: cover;
2 -moz-background-size: cover;
3 -o-background-size: cover;
4 background-size: cover;