css leave opacity in front of background image code example Example: reduce opacity of background image css .img1 { opacity: 0.6; z-index=1; }