Treehouse: Grow your CSS skills. Land your dream job.

img inline styles drop shadow on a transparent png/gif

  • # October 3, 2010 at 12:07 pm

    I Know of box-shadow & text shadow but how to make
    an unusually shaped transparent png/gif cast a
    shadow with css or inline styles
    to look something like this:

    (Preferably without javascript but not ruling it out)

    Thanks in advance

    # October 3, 2010 at 12:14 pm

    You could give the <img> element a background-image of the shadow. This would require 2 images though, and it wouldn’t be dynamic.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.