ellandrd
asked on
set background opacity without effecting text content
i want to apply some opacity to a div background but keep the foreground the same - e.g textual content.
i followed this example in: http://developer.mozilla.org/en/docs/CSS:-moz-opacity but everything gets effect - background and foreground.
i followed this example in: http://developer.mozilla.org/en/docs/CSS:-moz-opacity but everything gets effect - background and foreground.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
before i opened this question, i tried to position the text over the div element and it wasnt working for me. but after scanning over the site above again, i have to actually move the child element outside the parent element for it to work but i couldnt remember.... i was doing this:
<div><p></p></div>
cheers
ellandrd