Answers for "adding image in css class"

CSS
-1

how to add image with url in css

background-image: url('images/my-image.png');
Posted by: Guest on June-20-2020
0

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
0

add image to css

background-image: url(path);
background-repeat: no-repeat;
width: 10px;
height: 20px;
Posted by: Guest on February-17-2021

Code answers related to "adding image in css class"

Browse Popular Code Answers by Language