how to set opacity of image in background in html code example Example: transparent background css for image background-color: rgba(255, 0, 0, 0.5);