Monday 15 October 2012

How to give parent opacity but not effect in child

How to give parent opacity but not effect in child


it's very simple now you can used to RGBA format
r=red
g=green
b=blue
a=alpha


EXAMPLE

HTML
<div class="parent">
<p>
Give to parent opacity but not effect in child
</p>
</div>
CSS
.parent{
background:rgba(0,0,0,0.2);
}
Live Demo

1 comment: