CSS Box-Shadow Not Working in IE
up vote
10
down vote
favorite
How would I get this to work in IE?
.fancy
border: 1px solid black;
margin: 10px;
box-shadow: 5px 5px 5px #cccccc;
-webkit-box-shadow: 5px 5px 5px #cccccc;
-moz-box-shadow: 5px 5px 5px #cccccc;
Thanks
css internet-explorer css3
|
show 3 more comments
up vote
10
down vote
favorite
How would I get this to work in IE?
.fancy
border: 1px solid black;
margin: 10px;
box-shadow: 5px 5px 5px #cccccc;
-webkit-box-shadow: 5px 5px 5px #cccccc;
-moz-box-shadow: 5px 5px 5px #cccccc;
Thanks
css internet-explorer css3
Which version of IE?
– TJ.
Mar 30 '12 at 19:38
Any version. Mainly 7,8, or 9.
– Daniel Harris
Mar 30 '12 at 19:39
4
IE what? 9 is quite a bit different that 6.
– iambriansreed
Mar 30 '12 at 19:39
That works in IE9. Did you bother testing?
– BoltClock♦
Mar 30 '12 at 19:39
1
What version of IE are you using? It works on IE9 & Chrome in this example: jsfiddle.net/g65kN
– James Johnson
Mar 30 '12 at 19:42
|
show 3 more comments
up vote
10
down vote
favorite
up vote
10
down vote
favorite
How would I get this to work in IE?
.fancy
border: 1px solid black;
margin: 10px;
box-shadow: 5px 5px 5px #cccccc;
-webkit-box-shadow: 5px 5px 5px #cccccc;
-moz-box-shadow: 5px 5px 5px #cccccc;
Thanks
css internet-explorer css3
How would I get this to work in IE?
.fancy
border: 1px solid black;
margin: 10px;
box-shadow: 5px 5px 5px #cccccc;
-webkit-box-shadow: 5px 5px 5px #cccccc;
-moz-box-shadow: 5px 5px 5px #cccccc;
Thanks
css internet-explorer css3
css internet-explorer css3
asked Mar 30 '12 at 19:36
Daniel Harris
39772957
39772957
Which version of IE?
– TJ.
Mar 30 '12 at 19:38
Any version. Mainly 7,8, or 9.
– Daniel Harris
Mar 30 '12 at 19:39
4
IE what? 9 is quite a bit different that 6.
– iambriansreed
Mar 30 '12 at 19:39
That works in IE9. Did you bother testing?
– BoltClock♦
Mar 30 '12 at 19:39
1
What version of IE are you using? It works on IE9 & Chrome in this example: jsfiddle.net/g65kN
– James Johnson
Mar 30 '12 at 19:42
|
show 3 more comments
Which version of IE?
– TJ.
Mar 30 '12 at 19:38
Any version. Mainly 7,8, or 9.
– Daniel Harris
Mar 30 '12 at 19:39
4
IE what? 9 is quite a bit different that 6.
– iambriansreed
Mar 30 '12 at 19:39
That works in IE9. Did you bother testing?
– BoltClock♦
Mar 30 '12 at 19:39
1
What version of IE are you using? It works on IE9 & Chrome in this example: jsfiddle.net/g65kN
– James Johnson
Mar 30 '12 at 19:42
Which version of IE?
– TJ.
Mar 30 '12 at 19:38
Which version of IE?
– TJ.
Mar 30 '12 at 19:38
Any version. Mainly 7,8, or 9.
– Daniel Harris
Mar 30 '12 at 19:39
Any version. Mainly 7,8, or 9.
– Daniel Harris
Mar 30 '12 at 19:39
4
4
IE what? 9 is quite a bit different that 6.
– iambriansreed
Mar 30 '12 at 19:39
IE what? 9 is quite a bit different that 6.
– iambriansreed
Mar 30 '12 at 19:39
That works in IE9. Did you bother testing?
– BoltClock♦
Mar 30 '12 at 19:39
That works in IE9. Did you bother testing?
– BoltClock♦
Mar 30 '12 at 19:39
1
1
What version of IE are you using? It works on IE9 & Chrome in this example: jsfiddle.net/g65kN
– James Johnson
Mar 30 '12 at 19:42
What version of IE are you using? It works on IE9 & Chrome in this example: jsfiddle.net/g65kN
– James Johnson
Mar 30 '12 at 19:42
|
show 3 more comments
9 Answers
9
active
oldest
votes
up vote
49
down vote
On your site, this CSS rule is preventing box-shadow
from working in IE9:
table, table td
border-collapse: collapse;
See: box-shadow on IE9 doesn't render using correct CSS, works on Firefox, Chrome
You must add
border-collapse: separate;
to the element thatbox-shadow
is not working on.
So, this should fix the problem for you:
.fancy
border-collapse: separate;
4
And now IE10 also suffers from this. Pity Microsoft removed conditional comments.
– GlennG
Nov 5 '12 at 4:17
1
This is sooo unreasonable ! great find :D
– Kirk Strobeck
Feb 9 '15 at 23:31
1
The issue once reported in connect.microsoft.com/IE/feedback/details/770636/… and set Closed as Won't Fix, since IE is discontinued and replaced with Microsoft Edge.
– Binyamin
Apr 26 '17 at 12:15
add a comment |
up vote
7
down vote
box-shadow is supported from IE9 onwards.
There are plenty of sites out there describing how to do this for older IEs. One of them is: http://www.useragentman.com/blog/2011/08/24/how-to-simulate-css3-box-shadow-in-ie7-8-without-javascript/
Also check out: http://www.css3.info/preview/box-shadow/
My personal opinion in general on making older browsers do things they actually cannot is this:
Avoid it. Instead apply the principles of progressive enhancement. Also explain to your client that solving problems of outdated, non standard browsers with non standard solution, is very time consuming and probably not worth the effort.
This is where I got the code from. I saw that adding the method he used can't be applied to a single class.
– Daniel Harris
Mar 30 '12 at 19:42
I'm not quite sure what you mean with single class?
– TJ.
Mar 30 '12 at 19:48
2
IE 8 is indeed a "non-standard" browser, but it's not particularly "outdated" yet, and especially not in a way that most clients will accept. You really do need to support the current version (n) and version n–1.
– Cody Gray♦
Mar 30 '12 at 19:55
@CodyGray: I'm in agreement with you. I get carried away sometimes :-) Most clients will require IE7 support and in certain regions even IE6.
– TJ.
Mar 30 '12 at 19:57
add a comment |
up vote
5
down vote
It works fine in IE 9.
Earlier versions doesn't support box-shadow
, but you can use a filter:
zoom: 1;
filter:
progid:DXImageTransform.Microsoft.Shadow(Color=#eeeeee, Strength=15, Direction=90),
progid:DXImageTransform.Microsoft.Shadow(Color=#eeeeee, Strength=15, Direction=180);
Read: http://www.useragentman.com/blog/2011/08/24/how-to-simulate-css3-box-shadow-in-ie7-8-without-javascript/
It doesn't work at all in IE 9.
– Daniel Harris
Mar 30 '12 at 19:41
2
Then you're doing something wrong. Do you have compatibility mode enabled perhaps?
– James Johnson
Mar 30 '12 at 19:43
1
Doesn't work for me, either - in IE11.
– B. Clay Shannon
Oct 1 '15 at 15:59
1
@B.ClayShannon: There is mainly two reasons for adding that meta tag; either to tell IE that compatibility mode is not needed, or to tell IE to render the page as an older version. If it's the first case, then you could change it to specify "edge" (search for exact syntax) instead of a specific version, that would keep if from render it as the wrong version.
– Guffa
Oct 1 '15 at 18:10
1
@B.ClayShannon: Then you are stuck writing code for the version of IE that the meta tag tells IE to pretend to be... If the version number is too low there are some things that you simply won't be able to use at all.
– Guffa
Oct 1 '15 at 19:42
|
show 4 more comments
up vote
2
down vote
You could also use http://css3pie.com/
PIE makes Internet Explorer 6-9 capable of rendering several of the
most useful CSS3 decoration features.
add a comment |
up vote
1
down vote
From google: filter: progid:DXImageTransform.Microsoft.Shadow(color='#cccccc', Direction=135, Strength=3);
Probably not exactly as you want it, but fiddle around with it or look into DXImageTransform
some more.
add a comment |
up vote
1
down vote
On IE you need to use filter for that effect.
filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius=3,MakeShadow=true,ShadowOpacity=0.30);
-ms-filter: "progid:DXImageTransform.Microsoft.Blur(PixelRadius=3,MakeShadow=true,ShadowOpacity=0.30)";
zoom: 1;
For me (IE11), this makes the entire image one giant shadow.
– B. Clay Shannon
Oct 1 '15 at 16:01
add a comment |
up vote
1
down vote
By default IE was setting up IE10 Compatibility mode which should be replaced with IE 9 using meta-tag. So, whenever it will be running on other browsers then it will use the CSS that will be compatible with IE9. As in IE10 Compatibility mode box-shadow CSS property has been removed from the library
We can use meta-tag in head just to change the document compatibility level:
<meta http-equiv="X-UA-Compatible" content="IE=8,IE=9" />
Above tag is showing that make this document compatible with IE8 and IE9 for browsers other than IE8 and IE9 switch CSS level to IE9.
add a comment |
up vote
0
down vote
I believe this issue is specific to your browser, because it works for me in this jsFiddle on both IE9 & Chrome. The link you provided works in Chrome, but not in IE9. This would indicate that the issue is specific to your implementation.
I would check to make sure that compatibility mode is disabled, and also make sure you don't have any settings enabled that would interfere with CSS. I would also suggest testing this in multiple browsers and using process of elimination to determine why it isn't working.
EDIT
I was just looking at your markup. Try removing this line and see if it makes a difference:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
Tried that, doesn't work.
– Daniel Harris
Mar 30 '12 at 20:02
I would like to try that; I do see that line in my "View Source" but don't know how it gets there. I'm not explicitly adding it, that's for sure. Perhaps it's on one of the master pages that this page derives from/uses.
– B. Clay Shannon
Oct 1 '15 at 16:07
add a comment |
up vote
0
down vote
It's already 2018, happens the same with IE11.
Sometimes the box-shadow doesn't work, but sometimes it does.
I tried this with IE11 and IE10:
Try changing the display of the element where you want to add the shadow (usually "display: block" works fine):
.fancy
display: block;
border: 1px solid black;
margin: 10px;
box-shadow: 5px 5px 5px #ccc;
add a comment |
9 Answers
9
active
oldest
votes
9 Answers
9
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
49
down vote
On your site, this CSS rule is preventing box-shadow
from working in IE9:
table, table td
border-collapse: collapse;
See: box-shadow on IE9 doesn't render using correct CSS, works on Firefox, Chrome
You must add
border-collapse: separate;
to the element thatbox-shadow
is not working on.
So, this should fix the problem for you:
.fancy
border-collapse: separate;
4
And now IE10 also suffers from this. Pity Microsoft removed conditional comments.
– GlennG
Nov 5 '12 at 4:17
1
This is sooo unreasonable ! great find :D
– Kirk Strobeck
Feb 9 '15 at 23:31
1
The issue once reported in connect.microsoft.com/IE/feedback/details/770636/… and set Closed as Won't Fix, since IE is discontinued and replaced with Microsoft Edge.
– Binyamin
Apr 26 '17 at 12:15
add a comment |
up vote
49
down vote
On your site, this CSS rule is preventing box-shadow
from working in IE9:
table, table td
border-collapse: collapse;
See: box-shadow on IE9 doesn't render using correct CSS, works on Firefox, Chrome
You must add
border-collapse: separate;
to the element thatbox-shadow
is not working on.
So, this should fix the problem for you:
.fancy
border-collapse: separate;
4
And now IE10 also suffers from this. Pity Microsoft removed conditional comments.
– GlennG
Nov 5 '12 at 4:17
1
This is sooo unreasonable ! great find :D
– Kirk Strobeck
Feb 9 '15 at 23:31
1
The issue once reported in connect.microsoft.com/IE/feedback/details/770636/… and set Closed as Won't Fix, since IE is discontinued and replaced with Microsoft Edge.
– Binyamin
Apr 26 '17 at 12:15
add a comment |
up vote
49
down vote
up vote
49
down vote
On your site, this CSS rule is preventing box-shadow
from working in IE9:
table, table td
border-collapse: collapse;
See: box-shadow on IE9 doesn't render using correct CSS, works on Firefox, Chrome
You must add
border-collapse: separate;
to the element thatbox-shadow
is not working on.
So, this should fix the problem for you:
.fancy
border-collapse: separate;
On your site, this CSS rule is preventing box-shadow
from working in IE9:
table, table td
border-collapse: collapse;
See: box-shadow on IE9 doesn't render using correct CSS, works on Firefox, Chrome
You must add
border-collapse: separate;
to the element thatbox-shadow
is not working on.
So, this should fix the problem for you:
.fancy
border-collapse: separate;
edited May 23 '17 at 12:18
Community♦
11
11
answered Mar 30 '12 at 22:48
thirtydot
183k37331314
183k37331314
4
And now IE10 also suffers from this. Pity Microsoft removed conditional comments.
– GlennG
Nov 5 '12 at 4:17
1
This is sooo unreasonable ! great find :D
– Kirk Strobeck
Feb 9 '15 at 23:31
1
The issue once reported in connect.microsoft.com/IE/feedback/details/770636/… and set Closed as Won't Fix, since IE is discontinued and replaced with Microsoft Edge.
– Binyamin
Apr 26 '17 at 12:15
add a comment |
4
And now IE10 also suffers from this. Pity Microsoft removed conditional comments.
– GlennG
Nov 5 '12 at 4:17
1
This is sooo unreasonable ! great find :D
– Kirk Strobeck
Feb 9 '15 at 23:31
1
The issue once reported in connect.microsoft.com/IE/feedback/details/770636/… and set Closed as Won't Fix, since IE is discontinued and replaced with Microsoft Edge.
– Binyamin
Apr 26 '17 at 12:15
4
4
And now IE10 also suffers from this. Pity Microsoft removed conditional comments.
– GlennG
Nov 5 '12 at 4:17
And now IE10 also suffers from this. Pity Microsoft removed conditional comments.
– GlennG
Nov 5 '12 at 4:17
1
1
This is sooo unreasonable ! great find :D
– Kirk Strobeck
Feb 9 '15 at 23:31
This is sooo unreasonable ! great find :D
– Kirk Strobeck
Feb 9 '15 at 23:31
1
1
The issue once reported in connect.microsoft.com/IE/feedback/details/770636/… and set Closed as Won't Fix, since IE is discontinued and replaced with Microsoft Edge.
– Binyamin
Apr 26 '17 at 12:15
The issue once reported in connect.microsoft.com/IE/feedback/details/770636/… and set Closed as Won't Fix, since IE is discontinued and replaced with Microsoft Edge.
– Binyamin
Apr 26 '17 at 12:15
add a comment |
up vote
7
down vote
box-shadow is supported from IE9 onwards.
There are plenty of sites out there describing how to do this for older IEs. One of them is: http://www.useragentman.com/blog/2011/08/24/how-to-simulate-css3-box-shadow-in-ie7-8-without-javascript/
Also check out: http://www.css3.info/preview/box-shadow/
My personal opinion in general on making older browsers do things they actually cannot is this:
Avoid it. Instead apply the principles of progressive enhancement. Also explain to your client that solving problems of outdated, non standard browsers with non standard solution, is very time consuming and probably not worth the effort.
This is where I got the code from. I saw that adding the method he used can't be applied to a single class.
– Daniel Harris
Mar 30 '12 at 19:42
I'm not quite sure what you mean with single class?
– TJ.
Mar 30 '12 at 19:48
2
IE 8 is indeed a "non-standard" browser, but it's not particularly "outdated" yet, and especially not in a way that most clients will accept. You really do need to support the current version (n) and version n–1.
– Cody Gray♦
Mar 30 '12 at 19:55
@CodyGray: I'm in agreement with you. I get carried away sometimes :-) Most clients will require IE7 support and in certain regions even IE6.
– TJ.
Mar 30 '12 at 19:57
add a comment |
up vote
7
down vote
box-shadow is supported from IE9 onwards.
There are plenty of sites out there describing how to do this for older IEs. One of them is: http://www.useragentman.com/blog/2011/08/24/how-to-simulate-css3-box-shadow-in-ie7-8-without-javascript/
Also check out: http://www.css3.info/preview/box-shadow/
My personal opinion in general on making older browsers do things they actually cannot is this:
Avoid it. Instead apply the principles of progressive enhancement. Also explain to your client that solving problems of outdated, non standard browsers with non standard solution, is very time consuming and probably not worth the effort.
This is where I got the code from. I saw that adding the method he used can't be applied to a single class.
– Daniel Harris
Mar 30 '12 at 19:42
I'm not quite sure what you mean with single class?
– TJ.
Mar 30 '12 at 19:48
2
IE 8 is indeed a "non-standard" browser, but it's not particularly "outdated" yet, and especially not in a way that most clients will accept. You really do need to support the current version (n) and version n–1.
– Cody Gray♦
Mar 30 '12 at 19:55
@CodyGray: I'm in agreement with you. I get carried away sometimes :-) Most clients will require IE7 support and in certain regions even IE6.
– TJ.
Mar 30 '12 at 19:57
add a comment |
up vote
7
down vote
up vote
7
down vote
box-shadow is supported from IE9 onwards.
There are plenty of sites out there describing how to do this for older IEs. One of them is: http://www.useragentman.com/blog/2011/08/24/how-to-simulate-css3-box-shadow-in-ie7-8-without-javascript/
Also check out: http://www.css3.info/preview/box-shadow/
My personal opinion in general on making older browsers do things they actually cannot is this:
Avoid it. Instead apply the principles of progressive enhancement. Also explain to your client that solving problems of outdated, non standard browsers with non standard solution, is very time consuming and probably not worth the effort.
box-shadow is supported from IE9 onwards.
There are plenty of sites out there describing how to do this for older IEs. One of them is: http://www.useragentman.com/blog/2011/08/24/how-to-simulate-css3-box-shadow-in-ie7-8-without-javascript/
Also check out: http://www.css3.info/preview/box-shadow/
My personal opinion in general on making older browsers do things they actually cannot is this:
Avoid it. Instead apply the principles of progressive enhancement. Also explain to your client that solving problems of outdated, non standard browsers with non standard solution, is very time consuming and probably not worth the effort.
edited Mar 30 '12 at 19:54
answered Mar 30 '12 at 19:39
TJ.
7,60563870
7,60563870
This is where I got the code from. I saw that adding the method he used can't be applied to a single class.
– Daniel Harris
Mar 30 '12 at 19:42
I'm not quite sure what you mean with single class?
– TJ.
Mar 30 '12 at 19:48
2
IE 8 is indeed a "non-standard" browser, but it's not particularly "outdated" yet, and especially not in a way that most clients will accept. You really do need to support the current version (n) and version n–1.
– Cody Gray♦
Mar 30 '12 at 19:55
@CodyGray: I'm in agreement with you. I get carried away sometimes :-) Most clients will require IE7 support and in certain regions even IE6.
– TJ.
Mar 30 '12 at 19:57
add a comment |
This is where I got the code from. I saw that adding the method he used can't be applied to a single class.
– Daniel Harris
Mar 30 '12 at 19:42
I'm not quite sure what you mean with single class?
– TJ.
Mar 30 '12 at 19:48
2
IE 8 is indeed a "non-standard" browser, but it's not particularly "outdated" yet, and especially not in a way that most clients will accept. You really do need to support the current version (n) and version n–1.
– Cody Gray♦
Mar 30 '12 at 19:55
@CodyGray: I'm in agreement with you. I get carried away sometimes :-) Most clients will require IE7 support and in certain regions even IE6.
– TJ.
Mar 30 '12 at 19:57
This is where I got the code from. I saw that adding the method he used can't be applied to a single class.
– Daniel Harris
Mar 30 '12 at 19:42
This is where I got the code from. I saw that adding the method he used can't be applied to a single class.
– Daniel Harris
Mar 30 '12 at 19:42
I'm not quite sure what you mean with single class?
– TJ.
Mar 30 '12 at 19:48
I'm not quite sure what you mean with single class?
– TJ.
Mar 30 '12 at 19:48
2
2
IE 8 is indeed a "non-standard" browser, but it's not particularly "outdated" yet, and especially not in a way that most clients will accept. You really do need to support the current version (n) and version n–1.
– Cody Gray♦
Mar 30 '12 at 19:55
IE 8 is indeed a "non-standard" browser, but it's not particularly "outdated" yet, and especially not in a way that most clients will accept. You really do need to support the current version (n) and version n–1.
– Cody Gray♦
Mar 30 '12 at 19:55
@CodyGray: I'm in agreement with you. I get carried away sometimes :-) Most clients will require IE7 support and in certain regions even IE6.
– TJ.
Mar 30 '12 at 19:57
@CodyGray: I'm in agreement with you. I get carried away sometimes :-) Most clients will require IE7 support and in certain regions even IE6.
– TJ.
Mar 30 '12 at 19:57
add a comment |
up vote
5
down vote
It works fine in IE 9.
Earlier versions doesn't support box-shadow
, but you can use a filter:
zoom: 1;
filter:
progid:DXImageTransform.Microsoft.Shadow(Color=#eeeeee, Strength=15, Direction=90),
progid:DXImageTransform.Microsoft.Shadow(Color=#eeeeee, Strength=15, Direction=180);
Read: http://www.useragentman.com/blog/2011/08/24/how-to-simulate-css3-box-shadow-in-ie7-8-without-javascript/
It doesn't work at all in IE 9.
– Daniel Harris
Mar 30 '12 at 19:41
2
Then you're doing something wrong. Do you have compatibility mode enabled perhaps?
– James Johnson
Mar 30 '12 at 19:43
1
Doesn't work for me, either - in IE11.
– B. Clay Shannon
Oct 1 '15 at 15:59
1
@B.ClayShannon: There is mainly two reasons for adding that meta tag; either to tell IE that compatibility mode is not needed, or to tell IE to render the page as an older version. If it's the first case, then you could change it to specify "edge" (search for exact syntax) instead of a specific version, that would keep if from render it as the wrong version.
– Guffa
Oct 1 '15 at 18:10
1
@B.ClayShannon: Then you are stuck writing code for the version of IE that the meta tag tells IE to pretend to be... If the version number is too low there are some things that you simply won't be able to use at all.
– Guffa
Oct 1 '15 at 19:42
|
show 4 more comments
up vote
5
down vote
It works fine in IE 9.
Earlier versions doesn't support box-shadow
, but you can use a filter:
zoom: 1;
filter:
progid:DXImageTransform.Microsoft.Shadow(Color=#eeeeee, Strength=15, Direction=90),
progid:DXImageTransform.Microsoft.Shadow(Color=#eeeeee, Strength=15, Direction=180);
Read: http://www.useragentman.com/blog/2011/08/24/how-to-simulate-css3-box-shadow-in-ie7-8-without-javascript/
It doesn't work at all in IE 9.
– Daniel Harris
Mar 30 '12 at 19:41
2
Then you're doing something wrong. Do you have compatibility mode enabled perhaps?
– James Johnson
Mar 30 '12 at 19:43
1
Doesn't work for me, either - in IE11.
– B. Clay Shannon
Oct 1 '15 at 15:59
1
@B.ClayShannon: There is mainly two reasons for adding that meta tag; either to tell IE that compatibility mode is not needed, or to tell IE to render the page as an older version. If it's the first case, then you could change it to specify "edge" (search for exact syntax) instead of a specific version, that would keep if from render it as the wrong version.
– Guffa
Oct 1 '15 at 18:10
1
@B.ClayShannon: Then you are stuck writing code for the version of IE that the meta tag tells IE to pretend to be... If the version number is too low there are some things that you simply won't be able to use at all.
– Guffa
Oct 1 '15 at 19:42
|
show 4 more comments
up vote
5
down vote
up vote
5
down vote
It works fine in IE 9.
Earlier versions doesn't support box-shadow
, but you can use a filter:
zoom: 1;
filter:
progid:DXImageTransform.Microsoft.Shadow(Color=#eeeeee, Strength=15, Direction=90),
progid:DXImageTransform.Microsoft.Shadow(Color=#eeeeee, Strength=15, Direction=180);
Read: http://www.useragentman.com/blog/2011/08/24/how-to-simulate-css3-box-shadow-in-ie7-8-without-javascript/
It works fine in IE 9.
Earlier versions doesn't support box-shadow
, but you can use a filter:
zoom: 1;
filter:
progid:DXImageTransform.Microsoft.Shadow(Color=#eeeeee, Strength=15, Direction=90),
progid:DXImageTransform.Microsoft.Shadow(Color=#eeeeee, Strength=15, Direction=180);
Read: http://www.useragentman.com/blog/2011/08/24/how-to-simulate-css3-box-shadow-in-ie7-8-without-javascript/
edited Mar 30 '12 at 19:55
answered Mar 30 '12 at 19:40
Guffa
549k77551875
549k77551875
It doesn't work at all in IE 9.
– Daniel Harris
Mar 30 '12 at 19:41
2
Then you're doing something wrong. Do you have compatibility mode enabled perhaps?
– James Johnson
Mar 30 '12 at 19:43
1
Doesn't work for me, either - in IE11.
– B. Clay Shannon
Oct 1 '15 at 15:59
1
@B.ClayShannon: There is mainly two reasons for adding that meta tag; either to tell IE that compatibility mode is not needed, or to tell IE to render the page as an older version. If it's the first case, then you could change it to specify "edge" (search for exact syntax) instead of a specific version, that would keep if from render it as the wrong version.
– Guffa
Oct 1 '15 at 18:10
1
@B.ClayShannon: Then you are stuck writing code for the version of IE that the meta tag tells IE to pretend to be... If the version number is too low there are some things that you simply won't be able to use at all.
– Guffa
Oct 1 '15 at 19:42
|
show 4 more comments
It doesn't work at all in IE 9.
– Daniel Harris
Mar 30 '12 at 19:41
2
Then you're doing something wrong. Do you have compatibility mode enabled perhaps?
– James Johnson
Mar 30 '12 at 19:43
1
Doesn't work for me, either - in IE11.
– B. Clay Shannon
Oct 1 '15 at 15:59
1
@B.ClayShannon: There is mainly two reasons for adding that meta tag; either to tell IE that compatibility mode is not needed, or to tell IE to render the page as an older version. If it's the first case, then you could change it to specify "edge" (search for exact syntax) instead of a specific version, that would keep if from render it as the wrong version.
– Guffa
Oct 1 '15 at 18:10
1
@B.ClayShannon: Then you are stuck writing code for the version of IE that the meta tag tells IE to pretend to be... If the version number is too low there are some things that you simply won't be able to use at all.
– Guffa
Oct 1 '15 at 19:42
It doesn't work at all in IE 9.
– Daniel Harris
Mar 30 '12 at 19:41
It doesn't work at all in IE 9.
– Daniel Harris
Mar 30 '12 at 19:41
2
2
Then you're doing something wrong. Do you have compatibility mode enabled perhaps?
– James Johnson
Mar 30 '12 at 19:43
Then you're doing something wrong. Do you have compatibility mode enabled perhaps?
– James Johnson
Mar 30 '12 at 19:43
1
1
Doesn't work for me, either - in IE11.
– B. Clay Shannon
Oct 1 '15 at 15:59
Doesn't work for me, either - in IE11.
– B. Clay Shannon
Oct 1 '15 at 15:59
1
1
@B.ClayShannon: There is mainly two reasons for adding that meta tag; either to tell IE that compatibility mode is not needed, or to tell IE to render the page as an older version. If it's the first case, then you could change it to specify "edge" (search for exact syntax) instead of a specific version, that would keep if from render it as the wrong version.
– Guffa
Oct 1 '15 at 18:10
@B.ClayShannon: There is mainly two reasons for adding that meta tag; either to tell IE that compatibility mode is not needed, or to tell IE to render the page as an older version. If it's the first case, then you could change it to specify "edge" (search for exact syntax) instead of a specific version, that would keep if from render it as the wrong version.
– Guffa
Oct 1 '15 at 18:10
1
1
@B.ClayShannon: Then you are stuck writing code for the version of IE that the meta tag tells IE to pretend to be... If the version number is too low there are some things that you simply won't be able to use at all.
– Guffa
Oct 1 '15 at 19:42
@B.ClayShannon: Then you are stuck writing code for the version of IE that the meta tag tells IE to pretend to be... If the version number is too low there are some things that you simply won't be able to use at all.
– Guffa
Oct 1 '15 at 19:42
|
show 4 more comments
up vote
2
down vote
You could also use http://css3pie.com/
PIE makes Internet Explorer 6-9 capable of rendering several of the
most useful CSS3 decoration features.
add a comment |
up vote
2
down vote
You could also use http://css3pie.com/
PIE makes Internet Explorer 6-9 capable of rendering several of the
most useful CSS3 decoration features.
add a comment |
up vote
2
down vote
up vote
2
down vote
You could also use http://css3pie.com/
PIE makes Internet Explorer 6-9 capable of rendering several of the
most useful CSS3 decoration features.
You could also use http://css3pie.com/
PIE makes Internet Explorer 6-9 capable of rendering several of the
most useful CSS3 decoration features.
answered Mar 30 '12 at 19:59
stewe
32.4k116868
32.4k116868
add a comment |
add a comment |
up vote
1
down vote
From google: filter: progid:DXImageTransform.Microsoft.Shadow(color='#cccccc', Direction=135, Strength=3);
Probably not exactly as you want it, but fiddle around with it or look into DXImageTransform
some more.
add a comment |
up vote
1
down vote
From google: filter: progid:DXImageTransform.Microsoft.Shadow(color='#cccccc', Direction=135, Strength=3);
Probably not exactly as you want it, but fiddle around with it or look into DXImageTransform
some more.
add a comment |
up vote
1
down vote
up vote
1
down vote
From google: filter: progid:DXImageTransform.Microsoft.Shadow(color='#cccccc', Direction=135, Strength=3);
Probably not exactly as you want it, but fiddle around with it or look into DXImageTransform
some more.
From google: filter: progid:DXImageTransform.Microsoft.Shadow(color='#cccccc', Direction=135, Strength=3);
Probably not exactly as you want it, but fiddle around with it or look into DXImageTransform
some more.
answered Mar 30 '12 at 19:39
Matthew
16.5k54877
16.5k54877
add a comment |
add a comment |
up vote
1
down vote
On IE you need to use filter for that effect.
filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius=3,MakeShadow=true,ShadowOpacity=0.30);
-ms-filter: "progid:DXImageTransform.Microsoft.Blur(PixelRadius=3,MakeShadow=true,ShadowOpacity=0.30)";
zoom: 1;
For me (IE11), this makes the entire image one giant shadow.
– B. Clay Shannon
Oct 1 '15 at 16:01
add a comment |
up vote
1
down vote
On IE you need to use filter for that effect.
filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius=3,MakeShadow=true,ShadowOpacity=0.30);
-ms-filter: "progid:DXImageTransform.Microsoft.Blur(PixelRadius=3,MakeShadow=true,ShadowOpacity=0.30)";
zoom: 1;
For me (IE11), this makes the entire image one giant shadow.
– B. Clay Shannon
Oct 1 '15 at 16:01
add a comment |
up vote
1
down vote
up vote
1
down vote
On IE you need to use filter for that effect.
filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius=3,MakeShadow=true,ShadowOpacity=0.30);
-ms-filter: "progid:DXImageTransform.Microsoft.Blur(PixelRadius=3,MakeShadow=true,ShadowOpacity=0.30)";
zoom: 1;
On IE you need to use filter for that effect.
filter:progid:DXImageTransform.Microsoft.Blur(PixelRadius=3,MakeShadow=true,ShadowOpacity=0.30);
-ms-filter: "progid:DXImageTransform.Microsoft.Blur(PixelRadius=3,MakeShadow=true,ShadowOpacity=0.30)";
zoom: 1;
answered Mar 30 '12 at 19:42
Sven Bieder
4,56921027
4,56921027
For me (IE11), this makes the entire image one giant shadow.
– B. Clay Shannon
Oct 1 '15 at 16:01
add a comment |
For me (IE11), this makes the entire image one giant shadow.
– B. Clay Shannon
Oct 1 '15 at 16:01
For me (IE11), this makes the entire image one giant shadow.
– B. Clay Shannon
Oct 1 '15 at 16:01
For me (IE11), this makes the entire image one giant shadow.
– B. Clay Shannon
Oct 1 '15 at 16:01
add a comment |
up vote
1
down vote
By default IE was setting up IE10 Compatibility mode which should be replaced with IE 9 using meta-tag. So, whenever it will be running on other browsers then it will use the CSS that will be compatible with IE9. As in IE10 Compatibility mode box-shadow CSS property has been removed from the library
We can use meta-tag in head just to change the document compatibility level:
<meta http-equiv="X-UA-Compatible" content="IE=8,IE=9" />
Above tag is showing that make this document compatible with IE8 and IE9 for browsers other than IE8 and IE9 switch CSS level to IE9.
add a comment |
up vote
1
down vote
By default IE was setting up IE10 Compatibility mode which should be replaced with IE 9 using meta-tag. So, whenever it will be running on other browsers then it will use the CSS that will be compatible with IE9. As in IE10 Compatibility mode box-shadow CSS property has been removed from the library
We can use meta-tag in head just to change the document compatibility level:
<meta http-equiv="X-UA-Compatible" content="IE=8,IE=9" />
Above tag is showing that make this document compatible with IE8 and IE9 for browsers other than IE8 and IE9 switch CSS level to IE9.
add a comment |
up vote
1
down vote
up vote
1
down vote
By default IE was setting up IE10 Compatibility mode which should be replaced with IE 9 using meta-tag. So, whenever it will be running on other browsers then it will use the CSS that will be compatible with IE9. As in IE10 Compatibility mode box-shadow CSS property has been removed from the library
We can use meta-tag in head just to change the document compatibility level:
<meta http-equiv="X-UA-Compatible" content="IE=8,IE=9" />
Above tag is showing that make this document compatible with IE8 and IE9 for browsers other than IE8 and IE9 switch CSS level to IE9.
By default IE was setting up IE10 Compatibility mode which should be replaced with IE 9 using meta-tag. So, whenever it will be running on other browsers then it will use the CSS that will be compatible with IE9. As in IE10 Compatibility mode box-shadow CSS property has been removed from the library
We can use meta-tag in head just to change the document compatibility level:
<meta http-equiv="X-UA-Compatible" content="IE=8,IE=9" />
Above tag is showing that make this document compatible with IE8 and IE9 for browsers other than IE8 and IE9 switch CSS level to IE9.
answered May 17 '13 at 7:38
Wasif Kirmani
66911436
66911436
add a comment |
add a comment |
up vote
0
down vote
I believe this issue is specific to your browser, because it works for me in this jsFiddle on both IE9 & Chrome. The link you provided works in Chrome, but not in IE9. This would indicate that the issue is specific to your implementation.
I would check to make sure that compatibility mode is disabled, and also make sure you don't have any settings enabled that would interfere with CSS. I would also suggest testing this in multiple browsers and using process of elimination to determine why it isn't working.
EDIT
I was just looking at your markup. Try removing this line and see if it makes a difference:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
Tried that, doesn't work.
– Daniel Harris
Mar 30 '12 at 20:02
I would like to try that; I do see that line in my "View Source" but don't know how it gets there. I'm not explicitly adding it, that's for sure. Perhaps it's on one of the master pages that this page derives from/uses.
– B. Clay Shannon
Oct 1 '15 at 16:07
add a comment |
up vote
0
down vote
I believe this issue is specific to your browser, because it works for me in this jsFiddle on both IE9 & Chrome. The link you provided works in Chrome, but not in IE9. This would indicate that the issue is specific to your implementation.
I would check to make sure that compatibility mode is disabled, and also make sure you don't have any settings enabled that would interfere with CSS. I would also suggest testing this in multiple browsers and using process of elimination to determine why it isn't working.
EDIT
I was just looking at your markup. Try removing this line and see if it makes a difference:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
Tried that, doesn't work.
– Daniel Harris
Mar 30 '12 at 20:02
I would like to try that; I do see that line in my "View Source" but don't know how it gets there. I'm not explicitly adding it, that's for sure. Perhaps it's on one of the master pages that this page derives from/uses.
– B. Clay Shannon
Oct 1 '15 at 16:07
add a comment |
up vote
0
down vote
up vote
0
down vote
I believe this issue is specific to your browser, because it works for me in this jsFiddle on both IE9 & Chrome. The link you provided works in Chrome, but not in IE9. This would indicate that the issue is specific to your implementation.
I would check to make sure that compatibility mode is disabled, and also make sure you don't have any settings enabled that would interfere with CSS. I would also suggest testing this in multiple browsers and using process of elimination to determine why it isn't working.
EDIT
I was just looking at your markup. Try removing this line and see if it makes a difference:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
I believe this issue is specific to your browser, because it works for me in this jsFiddle on both IE9 & Chrome. The link you provided works in Chrome, but not in IE9. This would indicate that the issue is specific to your implementation.
I would check to make sure that compatibility mode is disabled, and also make sure you don't have any settings enabled that would interfere with CSS. I would also suggest testing this in multiple browsers and using process of elimination to determine why it isn't working.
EDIT
I was just looking at your markup. Try removing this line and see if it makes a difference:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
edited Mar 30 '12 at 20:00
answered Mar 30 '12 at 19:50
James Johnson
39.9k561100
39.9k561100
Tried that, doesn't work.
– Daniel Harris
Mar 30 '12 at 20:02
I would like to try that; I do see that line in my "View Source" but don't know how it gets there. I'm not explicitly adding it, that's for sure. Perhaps it's on one of the master pages that this page derives from/uses.
– B. Clay Shannon
Oct 1 '15 at 16:07
add a comment |
Tried that, doesn't work.
– Daniel Harris
Mar 30 '12 at 20:02
I would like to try that; I do see that line in my "View Source" but don't know how it gets there. I'm not explicitly adding it, that's for sure. Perhaps it's on one of the master pages that this page derives from/uses.
– B. Clay Shannon
Oct 1 '15 at 16:07
Tried that, doesn't work.
– Daniel Harris
Mar 30 '12 at 20:02
Tried that, doesn't work.
– Daniel Harris
Mar 30 '12 at 20:02
I would like to try that; I do see that line in my "View Source" but don't know how it gets there. I'm not explicitly adding it, that's for sure. Perhaps it's on one of the master pages that this page derives from/uses.
– B. Clay Shannon
Oct 1 '15 at 16:07
I would like to try that; I do see that line in my "View Source" but don't know how it gets there. I'm not explicitly adding it, that's for sure. Perhaps it's on one of the master pages that this page derives from/uses.
– B. Clay Shannon
Oct 1 '15 at 16:07
add a comment |
up vote
0
down vote
It's already 2018, happens the same with IE11.
Sometimes the box-shadow doesn't work, but sometimes it does.
I tried this with IE11 and IE10:
Try changing the display of the element where you want to add the shadow (usually "display: block" works fine):
.fancy
display: block;
border: 1px solid black;
margin: 10px;
box-shadow: 5px 5px 5px #ccc;
add a comment |
up vote
0
down vote
It's already 2018, happens the same with IE11.
Sometimes the box-shadow doesn't work, but sometimes it does.
I tried this with IE11 and IE10:
Try changing the display of the element where you want to add the shadow (usually "display: block" works fine):
.fancy
display: block;
border: 1px solid black;
margin: 10px;
box-shadow: 5px 5px 5px #ccc;
add a comment |
up vote
0
down vote
up vote
0
down vote
It's already 2018, happens the same with IE11.
Sometimes the box-shadow doesn't work, but sometimes it does.
I tried this with IE11 and IE10:
Try changing the display of the element where you want to add the shadow (usually "display: block" works fine):
.fancy
display: block;
border: 1px solid black;
margin: 10px;
box-shadow: 5px 5px 5px #ccc;
It's already 2018, happens the same with IE11.
Sometimes the box-shadow doesn't work, but sometimes it does.
I tried this with IE11 and IE10:
Try changing the display of the element where you want to add the shadow (usually "display: block" works fine):
.fancy
display: block;
border: 1px solid black;
margin: 10px;
box-shadow: 5px 5px 5px #ccc;
answered Nov 9 at 23:45
Soul Eeater
738
738
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f9949396%2fcss-box-shadow-not-working-in-ie%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Which version of IE?
– TJ.
Mar 30 '12 at 19:38
Any version. Mainly 7,8, or 9.
– Daniel Harris
Mar 30 '12 at 19:39
4
IE what? 9 is quite a bit different that 6.
– iambriansreed
Mar 30 '12 at 19:39
That works in IE9. Did you bother testing?
– BoltClock♦
Mar 30 '12 at 19:39
1
What version of IE are you using? It works on IE9 & Chrome in this example: jsfiddle.net/g65kN
– James Johnson
Mar 30 '12 at 19:42