Click to See Complete Forum and Search --> : Shadow


Zach Elfers
11-29-2002, 04:25 PM
How do you make a shadow. Like on Microsoft's homepage they have the side banner. When you move your mouse over items with arrows to their right, a new menu pops out. This menu has a shadow behind it. I know that the shadow was done with CSS but can anyone tell me how? Thanks.:)

Stefan
11-29-2002, 08:49 PM
There are shadow properties in CSS, but AFAIK no browser implements them.

IE also has a lot of "SFX" proprietary CSS lookalike. It's very likely that it's one of them you are seeing on MS own site.

For documentation of proprietary MS code, ms developer pages is probably the best place.
Obviously the code will only work in MS browsers.

Rick Bull
11-30-2002, 06:54 AM
You could do something like this also, not quite right, but close:


<p style="border-right:1px solid black; border-bottom:1px solid black;">
Blah
</p>

Zach Elfers
11-30-2002, 05:27 PM
No. I wouldn't like the look of that. The border would go all the way down to the edge and it wouldn't be a gradual shadow.

Xeenslayer
12-02-2002, 05:04 AM
I believe that it is done using CSS Filters, either the Shadow or Drop Shadow. I might be wrong, but in case you don't know the code for these...

----------

SHADOW:

<span style="width:100%;filter:shadow(color=#F00, direction=145);color:#008;font-size:2em">Blue text with Red Shadow</span>

----------

DROPSHADOW:

<span style="width:100%;filter:dropshadow(color=#AAA, OffX=2, OffY=2);color:#800;font-size:2em">Red text with Grey DropShadow</span>

----------

Maybe you'd want to try them out.

Zach Elfers
12-03-2002, 04:21 PM
Thanks! I'll try that.:)

Xeenslayer
12-10-2002, 05:00 AM
:) That's ok.

So does it work?