add css to image tag directly code example
Example 1: add image to css
background-image: url(path);
background-repeat: no-repeat;
width: 10px;
height: 20px;
Example 2: css add image
background-image: url("imageFile.png");
background-image: url(path);
background-repeat: no-repeat;
width: 10px;
height: 20px;
background-image: url("imageFile.png");