Forums
View unanswered posts | View active topics It is currently Wed Apr 23, 2014 12:54 pm



Reply to topic  [ 3 posts ] 
 Drop shadow not working in IE8, works in IE7 
Author Message

Joined: Wed Aug 11, 2010 5:25 pm
Posts: 5
Post Drop shadow not working in IE8, works in IE7
http://greenmaw.com/PIE-bug-demo/

In IE7 and in IE8 Compatibility Mode, this page renders fine. In IE8, the large image in the body loses its drop shadow.

I've tried everything I can think of to get this one working, down to wrapping the image in a div and applying the styles to that, and I haven't come up with any solutions. Stranger still, if I apply a border, the border works until PIE kicks in, at which point it vanishes.


Fri Aug 13, 2010 8:09 pm
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1430
Post Re: Drop shadow not working in IE8, works in IE7
Either:

Code:
.dropShadowBody {
    ...
    position:relative
}

or:
Code:
#imageContainer {
    ...
    z-index: 1; /*(or any z-index value)*/
}

This problem is described in detail at the top of http://css3pie.com/documentation/known-issues/

The reason it works in IE7 but not IE8 is because the two versions of IE treat the default z-index of position:absolute differently; IE7 incorrectly treats it as a new z-index stacking context whereas IE8 does not.


Sat Aug 14, 2010 3:17 pm
Profile

Joined: Wed Aug 11, 2010 5:25 pm
Posts: 5
Post Re: Drop shadow not working in IE8, works in IE7
Could have sworn I tried putting position:relative on .dropShadowBody but I'll try the z-index one. Thanks.


Sat Aug 14, 2010 5:49 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], Google [Bot] and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.