add image in before css code example
Example 1: add image ::before css
element::after{
content:url('blackCarrot.png');
position:relative; /*or absolute*/
z-index:100000;
left:-50px;
top:10px;
}
Example 2: how to add an image in css
.element {
background-image: url("imageFile.png");
}