Copilot
Your everyday AI companion
About 528,000 results
    edited Nov 24, 2017 at 14:50

    Why not use box-shadow? Using a circle as example:

    circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #3f0;
    box-shadow: 0px 5px 5px #888888;
    }
    <div class="circle"><div>

    And in your example, using a bottom image isn't really the best way to go, what if there is a change in width? It's not very responsive, I'd advise you to use this:

    body {
    background-color: #ccc;
    }

    #box {
    position: relative;
    height: 250px;
    width: 150px;
    background-color: white;
    margin: 50px;
    z-index: 2;
    }

    #box::after {
    position: absolute;
    Content Under CC-BY-SA license
    Was this helpful?
  1. Drop shadow with CSS for all web browsers - Robert's talk

  2. People also ask
    Sadly, it is lost in IE 5.5 and 5.0. The drop shadow effect stays, though. Our shadow will blend seamlessly with its background in standards-compliant browsers. In Explorer, the shadow will clash with the background unless you’ve stuck with the background color you used for your shadow.
    Differences in margin size account for IE’s box model, and that last padding value gives us a nice frame around the image. Sadly, it is lost in IE 5.5 and 5.0. The drop shadow effect stays, though. Our shadow will blend seamlessly with its background in standards-compliant browsers.
    Afterward, you can use the drop-shadow filter to add an image drop shadow to the visible section of the image. This way, you get an awesome shadow effect. As earlier indicated, you can use the box-shadow property in CSS to add drop-down shadows on block elements. Using this property, you will end up with a drop shadow rectangle in shape.
    Great, it worked. […] older versions of Internet Explorer, then you’ll need to add in the IE-only Shadow filter. Read here to find out […] […] older versions of Internet Explorer, then you’ll need to add in the IE-only Shadow filter.
  3. css - drop shadow style for IE11 - Stack Overflow

  4. Creating Cross Browser Compatible CSS Text Shadows - working …

  5. CSS3 Text Shadows and Internet Explorer Filters - Creative Hive Labs

  6. Drop Shadow CSS: The Best Guide To Creating …

    WEBCSS drop-shadow () is a function that lets you apply a shadow around a specified object. In essence, a drop shadow is a blurred offset version of the object’s alpha mask created in a specific color below the object. Its …

  7. Creating drop shadows in Internet Explorer browser …

    WEBInternet Explorer displays several text effects through style sheets. Here I’ll show you how to create a drop-shadow to text using style sheets. The drop shadow is made using the filter rule through which we specify the …

  8. CSS3 Solutions for Internet Explorer — Smashing Magazine

  9. CSS Drop Shadows – A List Apart

  10. drop-shadow() - CSS: Cascading Style Sheets | MDN - MDN Web …

  11. Related searches for drop shadows internet explorer