Answers for "add image use after css"

CSS
3

add image ::before css

element::after{
  content:url('blackCarrot.png'); 
  position:relative; /*or absolute*/
  z-index:100000; 
  left:-50px;
  top:10px;
}
Posted by: Guest on February-25-2021
1

add image to css

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

Browse Popular Code Answers by Language