How to set transparent background in HTML5 element

Debugger picture Debugger · Jun 7, 2013 · Viewed 34.9k times · Source

I want to set the opacity of an element to 0. Now if i do this, all the content of the element will inherit this property. I don't want this, i just want the background to get the opacity 0 while the content (the text for example) stays visible

Any clues ?

Thanks.

Answer

Debugger picture Debugger · Jun 7, 2013

After some research I found an easy answer - background-color: transparent;