Answers for "import image css"

CSS
2

import image css

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

how to add an image in css

.element {
  background-image: url("imageFile.png");
}
Posted by: Guest on May-21-2020
-1

insert image by css

div.mydiv:after {
  content: url(image.jpg); /*url of your image*/
}

or

div.mydiv {
   width:100px; /*width of your image*/
   height:100px; /*height of your image*/
   background-image:url('image.file');
}
Posted by: Guest on September-11-2020
1

background css image

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

Browse Popular Code Answers by Language