Reputation: 1183
I am trying to achieve a CSS3 opacity similar to what Facebook uses for its "Comments" Social Plugin. The opacity has a sort of "glass-like" look as if you were looking through a window.
Here is a screenshot of what I am referring to:
Upvotes: 0
Views: 210
Reputation: 10926
Here is a cross browser solution
the trick is to nest the background div within a container div
Upvotes: 4
Reputation: 7672
Set the background
(or background-color
) property to rgba(255,255,255,0.3)
or similar.
Upvotes: 1
Reputation: 7315
I'm going to say either something like this
.element
{
background-color: Black;
opacity: 0.2;
}
Or a transparent background image.
Upvotes: 2