KevySaysBeNice
[H]ard|Gawd
- Joined
- Dec 7, 2001
- Messages
- 1,452
Hi all!
I'm trying to figure out if there is a way that I can make a box-shadow behind an "invisible" element.
For instance, I'd like to do something like this:
There I tried to use the CSS3 RGBA value and make the element transparent that way, but the element (a div) still was visible through the shadow. If I set a vertical offset in my box shadow, then the shadow remains and the element is invisible, but I'd like to animate the shadow property via JS and as the blur increases if I don't adjust the vertical offset as well then I run into the same problem.
I've tried making the div have a background url('blank_pixel.png'); (so using a blank pixel as the background) but I get the same exact thing. The div is transparent, but when it's on top of the box-shadow you can still see the "silhouette" of the div.
Any bright ideas?
Thanks for the help!
[/code]
I'm trying to figure out if there is a way that I can make a box-shadow behind an "invisible" element.
For instance, I'd like to do something like this:
Code:
/* this doesn't seem to work */
#onlyshadow
{
-moz-box-shadow:0px 0px 10px gray;
background-color:rgba(0,0,0,0);
width:100px;
height:20px;
float:left;
}
I've tried making the div have a background url('blank_pixel.png'); (so using a blank pixel as the background) but I get the same exact thing. The div is transparent, but when it's on top of the box-shadow you can still see the "silhouette" of the div.
Any bright ideas?
Thanks for the help!
[/code]