hi any good answers how to make a nice shadow effect on a div tag ontop of a background picture so that a page seeems to hover abit over the site?
Developer forum
E-mail notifications
css - transparent
Posted on 15/02/2007 11:26:25
Replies
Posted on 19/02/2007 14:18:42
You can do that by using a transparent PNG image of the shadow as a backgound for your DIV. Just note that this does not work well in IE and older browsers that miss the PNG support.
ralf@fonqi.dk wrote:
hi any good answers how to make a nice shadow effect on a div tag ontop of a background picture so that a page seeems to hover abit over the site?
Posted on 19/02/2007 14:40:47
bg@degngrafik.dk wrote:
You can do that by using a transparent PNG image of the shadow as a backgound for your DIV. Just note that this does not work well in IE and older browsers that miss the PNG support.ralf@fonqi.dk wrote:
hi any good answers how to make a nice shadow effect on a div tag ontop of a background picture so that a page seeems to hover abit over the site?
A way to obtain PNG support in IE6 can be found here:
http://bjorkoy.com/post/show/8
Posted on 21/02/2007 12:38:14
hey But is png ok with safari? - sometime it seems to fuck a bit up?
Posted on 21/02/2007 20:59:29
ralf@fonqi.dk wrote:
hey But is png ok with safari? - sometime it seems to fuck a bit up?
I don't think it's a problem in Safari 2, but in earlier version I don't know.
// Sebastian
Posted on 08/03/2007 15:50:40
Well you can also use filters via css to make an div transparent.
Exampel - made only with javascript and css
Link to stylesheet
Dont mind the slacky css on the page its some time ago i made this site - was during my study. But it works:
.container {
background-color: #645D59;
height: 0px;
width: 457px;
z-index: 100;
filter: alpha(Opacity=69);
-Moz-Opacity: 0.69;
position: absolute;
top: -15px;
left: 491px;
}
.containertext {
position: absolute;
top: 100px;
left: 515px;
width: 416px;
height: 430px;
z-index: 101;
color: #FFFFFF;
filter: alpha(Opacity=0);
-Moz-Opacity: 0.00;
}
I use both filter and -Moz since i wanted it to work in both IE and FF.
Hope this can help abit.
/J
Exampel - made only with javascript and css
Link to stylesheet
Dont mind the slacky css on the page its some time ago i made this site - was during my study. But it works:
.container {
background-color: #645D59;
height: 0px;
width: 457px;
z-index: 100;
filter: alpha(Opacity=69);
-Moz-Opacity: 0.69;
position: absolute;
top: -15px;
left: 491px;
}
.containertext {
position: absolute;
top: 100px;
left: 515px;
width: 416px;
height: 430px;
z-index: 101;
color: #FFFFFF;
filter: alpha(Opacity=0);
-Moz-Opacity: 0.00;
}
I use both filter and -Moz since i wanted it to work in both IE and FF.
Hope this can help abit.
/J
You must be logged in to post in the forum