Answers for "set css background image"

CSS
125

css background image

background-image: url("image.png");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
Posted by: Guest on April-07-2020
5

background image html

<!-- Background images are better implemented in CSS -->
<!-- but here is how you could do it in HTML in a pinch -->

<head>
  <style>
    .background {
      background-image: url(https://cleananddelicious.com/wp-content/uploads/2016/03/Avocad0-CD.jpg);
    }
  </style>
</head>

<body>
  <div class=background>
    <h1>The background of this div will be an avocado</h1>
  </div>
</body>
Posted by: Guest on February-18-2020
3

adding background image

body{background-image: url("paper.gif");}
Posted by: Guest on June-28-2020
7

css background image

background-image: url("image.gif");
Posted by: Guest on April-01-2020
0

ho to add background image in css

body {
  background-image: url("img_tree.gif"), url("paper.gif");

    background-color: #cccccc;
}
Posted by: Guest on May-11-2021

Browse Popular Code Answers by Language