I couldn't get anything to work on that link
Main Topics
Browse All TopicsHi, I'm making a div that pops up over any other content on the page, I want the border of that div to have lower opacity than everything inside. I dont think theres a way to specifically make a border have a lighter opacity, so I set one div inside of another and have the outer div (border) opacity .4, the only problem is that the child div also inherits this. I've tried setting the child div to opacity:1; but that doesn't do anything, they both take the style. So I need picture_border have opacity .4, and picture_box have full opacity
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
this seems to be a popular question, so I want to leave a real answer here. with the current crop of browsers, the best way to accomplish this is using rgba() for color.
check here for more info:
http://24ways.org/2009/wor
"rgba()" is very cool, but still, having to use a workaround to support IE (and other browsers that don't support "rgba()") doesn't make it a whole lot simpler than what I suggested. (I suppose it is conceptually easier to understand though and doesn't require an extra <div>.) Also the CSS validator flags it as an error, even when using the (unfinished) CSS3 profile.
These two articles mention another workaround for using it in IE:
http://css-tricks.com/rgba
http://leaverou.me/2009/02
I wouldn't be too concerned about the CSS validator on this one.
And with the current trends in the industry, hopefully most people understand that not all browsers support it and it's ok if IE uses a solid color rather than something w/ an alpha channel.
No offense meant to your prev answer btw, but this Q was at the top of the 'hot list' or somewhere, and rgba() likely wouldn't have been a good answer back in March, but hopefully as we keep moving forward it'll become more and more a valid solution.
Oh my bad, I only read Kravimir's solution and did not see the others. (I guess it is because they are in comment format and not in a proposed solution format...)
In all cases following that discussion, I believe in non-critical styling issues like this one, it is very acceptable to use RGBA and ignore internet explorer. After all this compatibility issue won't hide content or significantly breaks the user experience. If a user sees a solid border instead of a transparent one it is ok ; those with RGBA support will simply have a slightly improved experience.
Business Accounts
Answer for Membership
by: KravimirPosted on 2009-03-05 at 18:56:59ID: 23813500
The solution is to use a 3rd <div>. The basic technique is shown here: http://www.sitepoint.com/f orums/show thread.php ?t=490807