Dreamweaver - transparent image backgrounds are gray

Discussion in 'HTML & Website Design' started by lespaul00, Nov 20, 2007.

  1. #1
    Hello,

    I uploaded my website, and when I view it in IE7, it looks fine. On another computer (running IE6), my images from Fireworks with "transparent" backgrounds now have "grey" backgrounds instead. It makes it look awful. Any way to correct this?


    Web development: Dreamweaver 8
    Image files: mostly .png
    Programming script: Coldfusion MX7
     
    lespaul00, Nov 20, 2007 IP
  2. lespaul00

    lespaul00 Peon

    Messages:
    283
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think I found an answer to my own question:

    http://www.webbedenvironments.com/blog/index.php/2007/09/06/28/

    I guess I'd place my .png in a layer such as:

    <div id=”layer1”></div>

    Then, include in my CSS:

    #layer1 {
    width: 100px; height: 100px;
    background: transparent url('myimage.png’) 0 0 no-repeat;
    _background: none;
    _filter:
    progid:DXImageTransform.Microsoft.AlphaImageLoader
    (src=’transparent-PNG-example.png’, sizingMethod=’crop’)
    };


    Yes, seems like a huge pain, but if this corrects the problem, it's well worth it!

    If anyone has easier solutions, please let me know!
     
    lespaul00, Nov 20, 2007 IP
  3. RNK Concepts

    RNK Concepts Peon

    Messages:
    74
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    There is an IE6 pngfix out there ... I believe it is a js file, and very common
     
    RNK Concepts, Nov 20, 2007 IP
  4. lespaul00

    lespaul00 Peon

    Messages:
    283
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    lespaul00, Nov 21, 2007 IP
  5. mz906

    mz906 Peon

    Messages:
    101
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    the IE pngfix is not always going to work, my solution is just to use the IE conditional statments

    <!--[if IE]
    #F {display:none;}
    [endif]-->

    something like that i think, and yeah, i just dont show IE users my png graphics, or you can just say F-it! have you ever seen how the apple start page looks on IE?
     
    mz906, Nov 21, 2007 IP
  6. KaniGT5

    KaniGT5 Active Member

    Messages:
    122
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #6
    You could always use a gif image.
     
    KaniGT5, Nov 21, 2007 IP
  7. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #7
    Why would you hide the element? And you are aware that IE7 has support for transparent PNGs? So you'd be hiding the elements in IE7 even though they would work properly.
     
    soulscratch, Nov 27, 2007 IP