best way to set background image css code example
Example 1: css background image
background-image: url("image.png");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
Example 2: css background image cover
html {
background: url(images/bg.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
Example 3: adding background image css
body {
background-image: url("paper.gif");
background-color: #cccccc;
}
body {
background-image: url("img_tree.gif"), url("paper.gif");
background-color: #cccccc;
}