Transparent CSS background color

Saranya picture Saranya · Jun 25, 2012 · Viewed 351.9k times · Source

I want to make the list menu's background disappear by using opacity, without affecting the font. Is it possible with CSS3?

Answer

Rohit Azad Malik picture Rohit Azad Malik · Jun 25, 2012

now you can use rgba in CSS properties like this:

.class {
    background: rgba(0,0,0,0.5);
}

0.5 is the transparency, change the values according to your design.

Live demo http://jsfiddle.net/EeAaB/

more info http://css-tricks.com/rgba-browser-support/