I have problem with png transparency in img tag

Discussion in 'HTML & Website Design' started by sandrodz, Mar 29, 2011.

  1. #1
    sandrodz, Mar 29, 2011 IP
  2. style0

    style0 Peon

    Messages:
    108
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I guess you use photoshop?

    You need to use the "Save for web and devices" - option in the Files-menu.
    Save as png-24 and right there in the saving options palette, there's a check box for transparency that you have to check. If you leave it unckecked it'll use foreground or background color as BG color/matte option.

    Check that box, it oughtta do it.
     
    style0, Mar 29, 2011 IP
  3. karthimx

    karthimx Prominent Member

    Messages:
    4,959
    Likes Received:
    127
    Best Answers:
    2
    Trophy Points:
    340
    #3
    you have to remove the background image and save them as .png extension.
     
    karthimx, Mar 29, 2011 IP
  4. sandrodz

    sandrodz Peon

    Messages:
    1,482
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hey, thx, but try to download image and open with photoshop! It's png24 with transparency selected ;) just download it, u can see it's transparent already on desktop.
     
    sandrodz, Mar 29, 2011 IP
  5. ameerulislam10

    ameerulislam10 Peon

    Messages:
    461
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Is that cartoon with the camera in hand you are talking about? It's actually transparent but the problem you are having that it's a picture file that is above that table. Maybe if you can use that image as your background or move your table a bit away will solve the issue.
     
    ameerulislam10, Mar 29, 2011 IP
  6. ameerulislam10

    ameerulislam10 Peon

    Messages:
    461
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I read your recent blog. I had a question. How do you prove that the image is really yours if the offender challenges back?
     
    ameerulislam10, Mar 29, 2011 IP
  7. sandrodz

    sandrodz Peon

    Messages:
    1,482
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I don't want to use it as css background cause of SEO considerations.

    ameerulislam10
    I'm gonna reply on the blog post.
     
    sandrodz, Mar 29, 2011 IP
  8. ameerulislam10

    ameerulislam10 Peon

    Messages:
    461
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Then I suppose may be you would want to rearrange your page to accommodate that image. You can also resize it if you are ok with it.

    I'll look onto your blog for the reply.
    Thanks
     
    ameerulislam10, Mar 29, 2011 IP
  9. sandrodz

    sandrodz Peon

    Messages:
    1,482
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #9
    you are telling me this is impossible? I don't want to change anything, this is how I designed it, and I like it... it seems weird to be problematic!
     
    sandrodz, Mar 29, 2011 IP
  10. greg2008

    greg2008 Peon

    Messages:
    26
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Hi sandrodz,

    I took a look at your site using Firebug. It looks like a simple CSS change.

    .entry img {
    background: none repeat scroll 0 0 #FFFFFF;
    border: 0 solid #DDDDDD;
    max-width: 630px;
    padding: 4px;
    }

    By changing the background from "none" to "transparent", I was able to get the result you wanted. It worked in FireFox anyway.

    Try that and see if it works for you.

    -Greg
     
    Last edited: Mar 29, 2011
    greg2008, Mar 29, 2011 IP
    sandrodz likes this.
  11. sandrodz

    sandrodz Peon

    Messages:
    1,482
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #11
    thanks greg! worked :)
     
    sandrodz, Mar 29, 2011 IP