SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Aug 2009
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Transparency needed for DIV's background Image

    Hi,

    I am setting up a website that uses layered DIVs. One of the body DIVs has a 5x5pixel semitransparent PNG file as a repeating background image. The transparency works in IE 7, Google Chrome etc but doesn't work on older versions of IE. I have located a fix for making PNG 24 transparency work on older IE but it requires adding code around the IMG tags in the HTML's body and, therefore, cannot be added to the DIV's properties. Is there any way of making the background image work as a semitransparent background?

    This particular background is just a solid colour so I'm sure there is a way of setting a DIVs background colour to be semitransparent instead of using a PNG?

    If possible though, I would like to know how to apply a degree of transparency to a PNG image being used as a background for future use?

    Thanks,
    Matthew

  2. #2
    SitePoint Wizard jim_morrison3's Avatar
    Join Date
    Apr 2004
    Location
    UK
    Posts
    2,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think this question should really belong to the Web development section instead of Flash. Anyways IE based browsers before version 7 does not have support for PNG transparency, in order to force PNG transparency in prior to IE7 browsers you need to make use of a filter called "DXImageTransform.Microsoft.AlphaImageLoader", check the following search results from png transparency in IE6
    Good Luck!
    There are things known and Things unknown
    And in between are the Doors.
    I love hand Coding.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •