Answers for "how to use background-image url in css"

CSS
10

How to set a image as a backgroung image

<style>
body {
  background-image: url('img_girl.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}
</style>
Posted by: Guest on May-20-2020
17

background image css

.selector {
  background-image: url(image.png);
}
Posted by: Guest on May-25-2020

Browse Popular Code Answers by Language