Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

shadow effect around a POpup

Status
Not open for further replies.

fixthebug2003

Programmer
Oct 20, 2003
294
US
Hi,
I have IE 5.5. I am using <DIV> tags to display a popup. How can we create shadow effect on the DIV tag. especially on the right border and the bottom border?

Fixthebug2003
 

Add this to your DIV's style:

Code:
filter: "progid:DXImageTransform.microsoft.shadow(color='#666666', direction=135, strength=4)";

Obviously, you can change the colour, direction, and strength to suit ;o)

hope this helps,
Dan

 
Hi,
I tried this and it works..but...
I applied the shadow Filter on the <DIV> tag and the shadow appears around the div tag....but it also applies the shadow to all the elements ( like text etc) inside the <DIV> tag.
Is this a bug in IE and if yes is there a fix?


Fixthebug2003
 

Hmm strange - I don't get that problem. You could try something like this, assuming your DIV had an ID of "myDiv":

Code:
#myDiv {
   filter: "progid:DXImageTransform.microsoft.shadow(color='#666666', direction=135, strength=4)";
}
#myDiv * {
   filter: none;
}

Hope this helps,
Dan

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top