How would you override the transparency setting of a parent div?
I have a paragraph tag inside a div. The text and the background of the div are the same color, lets say white. The opacity of the div is set to 60%, how do I keep the text at 100%? By default, whatever child element is in that [60%] div, will automatically be at 60% opacity. I can drop the opacity of the text even further, but if I set it to 100%, that is actually 60% because it is inside the div that is set to 60%. Any ideas? Thanks.
Example:
HTML Code:<div class="transparent"> <p>This text need to be at 100% transparency, full color.</p> </div>Code:div.transparency { background-color:#fff; width:150px; height:350px; opacity:0.6; filter:alpha(opacity=60); margin:0; padding:10px; } div.transparency p { font:normal 10pt Arial; color:#fff; margin:0; padding:0; }



LinkBack URL