body { font-family: 'Segoe UI', Tahoma, sans-serif; color: #000; font-size: 10pt;…
- User
body { font-family: 'Segoe UI', Tahoma, sans-serif; color: #000; font-size: 10pt; background-image: url('bg.png'); background-size: cover; background-repeat: no-repeat; opacity: 0.8; }
I simply want the opacity of the background iamge changed
- Assistant
The
opacityproperty in CSS affects the entire element, including the content (text, images, etc.), not just the background image. Therefore, applying to the will make everything inside the tag partially transparent, not just the background image.