Utilizing these RGBA colors you can set the color of the background as well as its transparency without affecting the text on it. But I don't understand why you don't want use png. How do I change the background opacity without affecting text? However, if you get creative, there are a ton of creative work-arounds you to make it seem like you’re changing the CSS background image’s opacity. The background-opacity property can only be used to change the opacity or transparency of an element’s background without affecting sub-elements. Unlike non-background images, setting the opacity of a background image cannot be done by simply setting the opacity property through CSS. By default, only responsive, group-hover, focus-within, hover and focus variants are generated for text opacity utilities. At this point you'll be able to adjust the opacity of it without affecting the opacity of the content inside '.container'. You’ll see the layer opacity change in the document window as you move the slider. Tagged with beginners, codenewbie, css, 100daysofcode. The back part of the background is still slightly visible to the viewer.This can be useful when you want to add a text to the container. In this tutorial, we will learn how to change a background image opacity without affecting the text using css. Frontend Masters is the best place to get it. The most common & simple way to add background image is using the background image attribute inside the tag. also generate active variants: Click and drag the slider to adjust the opacity. Intoduction about RGBA color: The forum ‘CSS’ is closed to new topics and replies. so far with the combinations i’ve tried, changing the opacity on the p element changes the span text. Some are more artistic, using a mixture of opacity to give the images more pizzaz. Notes: Select the desired layer, then click the Opacity drop-down arrow at the top of the Layers panel. How can i change background image opacity without changing on div content? CSS Background Opacity Without Affecting the Child Elements, How to change the opacity of an element's background without affecting the child There is no CSS property like "background-opacity" that you can use only for changing the Opacity Using RGBA Colors