How to make a transparent background without background image?

Viewed 103634

I would like a div to have a transparent background.
I tried to do this using background-color and opacity, but the problem is that the border and the text inside become also transparent. Example here.

Is this possible to achieve this without using transparent PNG background image ?

5 Answers

A very simple CSS method to have a clear transparent background in html is this code.

background: rgba(0, 0, 0, 0.6)!important;
Related