In my design setup, there is a container with an opacity set at 0.8. This allows the background image to subtly shine through the content area. The challenge arises when I place a client photo inside this container. The issue is that the photo's opacity corresponds with the parent element's opacity, instead of being independent and relative to the body.
The code in question looks like this:
<div id="contentContainer" style="background: #FFFFFF; opacity: 0.8">
Content ...
<img src="..." style="opacity: 1.0" alt="Photo" />
</div>
This implementation falls short, as further discussed below.
Does anyone have a solution in mind?