How to call an image in css?
2 answers
No. You cannot do this with css.
CSS does not use foreground images. You can use only background images.
However, if I understand your problem, you can place the image using a pseudo-element :
.leader::after{
content: "";
background: url(path.jpg) no-repeat;
position:absolute;
top: 0;
left: 0;
width: 50%;
height: 300px;
}
+6