Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS transparent background image hacks for IE6

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #44525
    botpro7
    Member

    Hi guys, i have a background image and text inside list item, so far i’m doing great. But when i tried to view it in IE6 the problem occured. My transparent background image are no longer transparent. So i did some hacks like this:

    li
    {
    background: url(image.png) no-repeat center
    _background:none;
    _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’image.png’,sizingMethod=’crop’);
    }

    Transparent image problem solved! but the image is not on the center of the list item (i couldn’t set the fixed width and height for the list item since it contains text that is wider than the image)

    then i tried to put this hack from microsoft website:

    _filter:progid:DXImageTransform.Microsoft.Fade(center = ‘true’);

    but still no use.

    Could anyone please tell me what should i do to solve this?
    Greatly appreciate it. Thanks in advanced.

    #134028
    botpro7
    Member

    well i just want to build the web which are compatible to most of all browsers out there :)

    anyway thanks jamy for your links.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.