I'm trying to create a <div> that has an opacity of 60%. I want the content of that <div> to be clear and not transparent.
The <div> with the class white_bg should have a white background color with 60% transparency, but the text and the image inside that <div> should be clear and not transparent at all.
Is that possible?
Please note that the text in the paragraph with the class main_content will be dynamic and the height will always change, so I can't just set a width and a height for the white_bg class and use position absolute and place it right behind the paragraph.
HTML
<div class="white_bg"> <h1 class="main_titles">Toon Boom Animate</h1> <h6 class="subtitles">The Most Reliable Flash Animator Companion</h6> <p class="main_content"> <img class="floatright" src="images/images.jpg" alt="" /> text comes here </p> </div>