css background image local path code example
Example 1: css background image
background-image: url("image.png");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
Example 2: background image syntax in css if it is in folder
background: url('img/someimage.jpg');
background: url('http://www.someimage.com/someimage.jpg');
background: url('//www.someimage.com/someimage.jpg');
Example 3: how to set background image for web page in html local image
body { background-image: url(/path/to/image.png); }
Example 4: css background image
body {
background-image: url("paper.gif");
}
Example 5: background path css
body {
background: url(sweettexture.jpg);
}