CSS Box-Shadow Not Working in IE









up vote
10
down vote

favorite
2












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










share|improve this question





















  • 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















up vote
10
down vote

favorite
2












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










share|improve this question





















  • 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













up vote
10
down vote

favorite
2









up vote
10
down vote

favorite
2






2





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










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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

















  • 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













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 that box-shadow
is not working on.




So, this should fix the problem for you:



.fancy 
border-collapse: separate;






share|improve this answer


















  • 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

















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.






share|improve this answer






















  • 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


















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/






share|improve this answer






















  • 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

















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.







share|improve this answer



























    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.






    share|improve this answer



























      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;





      share|improve this answer




















      • For me (IE11), this makes the entire image one giant shadow.
        – B. Clay Shannon
        Oct 1 '15 at 16:01

















      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.






      share|improve this answer



























        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" />





        share|improve this answer






















        • 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

















        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;






        share|improve this answer




















          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          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

























          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 that box-shadow
          is not working on.




          So, this should fix the problem for you:



          .fancy 
          border-collapse: separate;






          share|improve this answer


















          • 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














          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 that box-shadow
          is not working on.




          So, this should fix the problem for you:



          .fancy 
          border-collapse: separate;






          share|improve this answer


















          • 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












          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 that box-shadow
          is not working on.




          So, this should fix the problem for you:



          .fancy 
          border-collapse: separate;






          share|improve this answer














          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 that box-shadow
          is not working on.




          So, this should fix the problem for you:



          .fancy 
          border-collapse: separate;







          share|improve this answer














          share|improve this answer



          share|improve this answer








          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












          • 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












          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.






          share|improve this answer






















          • 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















          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.






          share|improve this answer






















          • 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













          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.






          share|improve this answer














          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.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          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

















          • 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











          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/






          share|improve this answer






















          • 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














          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/






          share|improve this answer






















          • 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












          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/






          share|improve this answer














          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/







          share|improve this answer














          share|improve this answer



          share|improve this answer








          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
















          • 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










          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.







          share|improve this answer
























            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.







            share|improve this answer






















              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.







              share|improve this answer












              You could also use http://css3pie.com/




              PIE makes Internet Explorer 6-9 capable of rendering several of the
              most useful CSS3 decoration features.








              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Mar 30 '12 at 19:59









              stewe

              32.4k116868




              32.4k116868




















                  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.






                  share|improve this answer
























                    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.






                    share|improve this answer






















                      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.






                      share|improve this answer












                      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.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Mar 30 '12 at 19:39









                      Matthew

                      16.5k54877




                      16.5k54877




















                          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;





                          share|improve this answer




















                          • For me (IE11), this makes the entire image one giant shadow.
                            – B. Clay Shannon
                            Oct 1 '15 at 16:01














                          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;





                          share|improve this answer




















                          • For me (IE11), this makes the entire image one giant shadow.
                            – B. Clay Shannon
                            Oct 1 '15 at 16:01












                          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;





                          share|improve this answer












                          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;






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          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
















                          • 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










                          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.






                          share|improve this answer
























                            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.






                            share|improve this answer






















                              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.






                              share|improve this answer












                              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.







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered May 17 '13 at 7:38









                              Wasif Kirmani

                              66911436




                              66911436




















                                  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" />





                                  share|improve this answer






















                                  • 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














                                  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" />





                                  share|improve this answer






















                                  • 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












                                  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" />





                                  share|improve this answer














                                  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" />






                                  share|improve this answer














                                  share|improve this answer



                                  share|improve this answer








                                  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
















                                  • 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










                                  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;






                                  share|improve this answer
























                                    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;






                                    share|improve this answer






















                                      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;






                                      share|improve this answer












                                      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;







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Nov 9 at 23:45









                                      Soul Eeater

                                      738




                                      738



























                                           

                                          draft saved


                                          draft discarded















































                                           


                                          draft saved


                                          draft discarded














                                          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





















































                                          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







                                          Popular posts from this blog

                                          Use pre created SQLite database for Android project in kotlin

                                          Darth Vader #20

                                          Ondo