I am trying to add a background image to the <img>
tag. My goal is to display the checkmark image in the center of the Twitter image. However, the checkmark image as a background image is not appearing here.
img{
background-image:url(https://www.colourbox.com/preview/2692824-green-check-mark-symbol-over-white-background.jpg);
background-repeat:no-repeat;
background-size:20%;
background-position:center center;
}
<img src="https://hakin9.org/wp-content/uploads/2014/02/twitter-150x150.png" />