Answers for "import image 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
2

import image css

background-image: url(path);
background-repeat: no-repeat;
Posted by: Guest on July-02-2021
1

background css image

background-image: url('./image.jpg');
Posted by: Guest on October-05-2020

Browse Popular Code Answers by Language