There are two blocks, one inside the other.
.first { width: 100px; height: 100px; background-color: rgba(255,0,0,0.5) } .second { width: 75px; height: 75px; background-color: rgba(0,0,255,0.5) } <div class="first"> <div class="second"></div> </div> Is it possible to remove the color overlay effect or to limit the background of the external element to the internal borders?
For example, a transparent modal window. The background shading is mixed into the background of the window itself. At the same time, the window itself may contain other blocks, which would also like to set a transparent background of a different color.