Grow your CSS skills. Land your dream job.

How to creat a box shadow for a PNG image???

  • # April 16, 2013 at 4:56 pm

    I came across this problem when I was placing elements on a site; I place a png image on the page I applied a drop shadow and it just selected the whole back.

    I want to know is there’s a way you can selected around the transparent image besides the box?

    # April 16, 2013 at 5:00 pm

    You can’t do that.

    # April 16, 2013 at 5:43 pm

    if you can get the original image source, and it isn’t flattened, you could do it in a graphic editor.

    # April 16, 2013 at 8:59 pm

    Or convert it an svg, or, you could something crazy with borders and backgrounds to mimic it. All in all, probably easiest to just do it in photoshop

    # April 17, 2013 at 1:47 pm

    @will_wallace85
    your right I can just simply applied the shadow in photoshop.

    @cwork
    thats a good Idea I shouldn’t relied on coding to fix all my problem when I can solve the problems with my programs.

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

You must be logged in to reply to this topic.

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