Q:

background image

background-image: url("image.png");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
33
<style>
body {
  background-image: url('img_girl.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}
</style>
8
body
{
  background-image: url("img.jpg");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100% 100%;
}
4
<!-- Code by Scratchy -->
<!-- Twitter: @S_cratchy-->

<head>
  <style>
    body {
      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) 
    }
  </style>
  
  <body>
    You have set the background image!
    
    
    
  </body>
0
<html>
<body>

<h2>Background Image</h2>

<div style="background-image: url('img_girl.jpg');">
4
.selector {
  background-image: url(image.png);
}
14
div {
  background-color: #ffffff;
  background-image: url("img_tree.png");
  background-repeat: no-repeat;
  background-attachment: scroll|fixed|local|initial|inherit;
  background-position: right top  |  x% y%  |  xpos ypos;
  background-clip: border-box|padding-box|content-box|initial|inherit;
  background-size: auto|length|cover|contain|initial|inherit;
}
//shorthand:
div {
  background: #ffffff url("img_tree.png") no-repeat right top;
}
8

body {

 background-image: url("paper.gif");

 background-color: #cccccc;

} 
 
6
html,body {
  background-image: url("your.picture");
}
18
body {
 background-image: url("paper.gif");

}
2

New to Communities?

Join the community