1background-image: url("image.png");
2background-position: center;
3background-repeat: no-repeat;
4background-size: cover;
1<style>
2body {
3 background-image: url('img_girl.jpg');
4 background-repeat: no-repeat;
5 background-attachment: fixed;
6 background-size: cover;
7}
8</style>
1<!-- Code by Scratchy -->
2<!-- Twitter: @S_cratchy-->
3
4<head>
5 <style>
6 body {
7 background-image: url(https://wallup.net/wp-content/uploads/2019/09/110394-cats-grey-kittens-fluffy-fat-grass-animals-cat-kitten-baby-cute-748x468.jpg)
8 }
9 </style>
10
11 <body>
12 You have set the background image!
13
14
15
16 </body>
1.wrapper {
2 background: url('./images/homeBg.png') no-repeat;
3 background-size: 100vw;
4 float: left;
5 height: 100vw;
6 width: 100vw;
7}
1div {
2 background-color: #ffffff;
3 background-image: url("img_tree.png");
4 background-repeat: no-repeat;
5 background-attachment: scroll|fixed|local|initial|inherit;
6 background-position: right top | x% y% | xpos ypos;
7 background-clip: border-box|padding-box|content-box|initial|inherit;
8 background-size: auto|length|cover|contain|initial|inherit;
9}
10//shorthand:
11div {
12 background: #ffffff url("img_tree.png") no-repeat right top;
13}