Transparency on the background of the parent div

I wonder if it is possible to affect the bg color or the opacity of the parent div.

I have a div with this transparent white color:

background-color:rgba(255,255,255,0.9);

div contains text fields with rounded corners, can the background color of text fields somehow be a negative transparency number, so the total opacity of the div and text field is 0.5?

It seems like the transparency in the rounded rec is already a transparent div.

I came up with 3 possible solutions:

  • Make the parent dic completely transparent and draw divs as a border around the margins. (It sounds very complicated.)
  • Add the content below the div again in the text box. (Performance?)
  • Some intersection.

What do you think I should do?

- Edit ---

# 2, png. () (, div). - , .

. , png, .

+5
3

, / div. , , div , , , , div , div.

, div PNG- , , , ...

+1

, , div, . , , , - jsfiddle.

: http://css-tricks.com/384-non-transparent-elements-inside-transparent-elements/

: , ( , ), , . divs, . , , , - ? , , png- , , , png .

- : http://jsfiddle.net/XnATc/21/

0

Johannes Lund

Yes, you must use png image files for this, otherwise things will be very difficult with hexadecimal color coding and its math.

0
source

All Articles