Hi all,

I'm having some trouble with setting an 11% opacity for a parent
container, while its children remain at 100% opacity. Here's my
simplified html:

<div>
        <img src="photo.jpg" />
</div>

and I'm doing a simple css thing to control the opacity:

$("div").css({"opacity": 0.11});

So now all content in the container is transparent, including the
image. I tried setting the img's opacity to 1 but it doesn't work. And
that makes perfect sense but I just don't know how to fix it. Any
ideas?

Thanks in advance.
Bob

Reply via email to