(class="transbox") inside the first
Set Background Color Opacity Using Alpha Channel Color Notations. But this tutorial will guide you how to handle this property effectively. petewinter asked on 2012-05-18. While you could use opacity:0.5 to make it 50% transparent, this has the side effect of making everything in the DIV semi-transparent, not just the background. What is the best way to include CSS file? The value of opacity lies between 0.0 to 1.0 where the low value represents high transparent and high value represents low transparent. This will ensure that the background image and the text content will be on their own “layer” in the parent. I have created an object style, checked the Transparency button on the Effects for the 'Object', and set it to 30% transparent. How to change color of PNG image using CSS? background color opacity, but not the text. The easiest way to set transparent background color to a HTML element, without affecting the text-content is to use the rgba () function in CSS. To change the opacity of the background color and not of the text using CSS, all you gotta make use of some value and you will be able to do it in no time, those values are RGBA values.