cssisenthusiastic
New Coder
I have a container which has a transparent background set with rgba(), within this container, there is a div element that also has its background with the same alpha as the parent but different RGB.
The problem I have is that the parent container is visible underneath the child container, which makes it look like the child container has a higher alpha value while it doesn't.
How to hide or, let's say, prevent the main container's background from filling in the child element area so that they both have their transparency and don't depend on each other?
I've searched for a solution for so long, but the only thing I've come close to is using the opacity property for the main container and using solid hex backgrounds, but this affects the text as well.
Please, if you're able to help me, I highly appreciate it.
The problem I have is that the parent container is visible underneath the child container, which makes it look like the child container has a higher alpha value while it doesn't.
How to hide or, let's say, prevent the main container's background from filling in the child element area so that they both have their transparency and don't depend on each other?
I've searched for a solution for so long, but the only thing I've come close to is using the opacity property for the main container and using solid hex backgrounds, but this affects the text as well.
Please, if you're able to help me, I highly appreciate it.

