View Full Version : shadow filter
ASAAKI
09-20-2002, 07:32 PM
i've tried adding shadows to images and layers, but to no avail. :confused:
i tried the DropShadow and Shadow filters but they don't work. Others do thought, like wave and blur.
How do u add shadows to text, images and layers?
<STYLE>.dshadow{
width: 100%; font-size: 50px; color:red; filter: DropShadow(Color=#555555, OffX=10, OffY=0, Positive=1) }
</STYLE>
<div align="center" class="dshadow">DROP SHADOW </div>
OR:
<div style="width:150; font-size: 50px; color:red; filter: DropShadow(Color=#555555, OffX=10, OffY=0, Positive=1)">Hello</div>
Sorry did you the drop shadow instead of shadow:
<STYLE>.shadow{
width: 100%;font-size: 50px; color:red; filter: Shadow(Color=#654321, Direction=50) }
</STYLE>
<div align="center" class="shadow">SHADOW </div>
OR:
<div style="width: 200;font-size: 50px; color:red; filter: Shadow(Color=#654321, Direction=50) ">HELLO WORLD </div>
ASAAKI
09-21-2002, 01:06 PM
thanx! :):) it worked with the text, but i still have a couple of problems. no matter what value i give Direction, it's always in the same direction, and i can't make any shadow for a division. i tried this and it didn't work:
<div style="position:absolute; background-color: orange; width:80; height:80; left:100; top:100" class="shadow"></div>
can't layers have shadows?
and what about drop shadow?
It's there, it's just behind the background color.
Use the 5.5 filter syntax:
filter:
progid:DXImageTransform.Microsoft.Shadow(color=#0000FF,direction=45)
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/filter/reference/reference.asp
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.