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

    Hi,
    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:

    http://img521.imageshack.us/img521/8595/shapeu.png

    (Preferably without javascript but not ruling it out)

    Thanks in advance
    Lollie

    # 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.

*May or may not contain any actual "CSS" or "Tricks".