Transparent PNG Borders
Posted: 09 October 2008 09:10 AM   [ Ignore ]
Newbie
Rank
Total Posts:  10
Joined  2008-10-09

I have applied the Twin Helix PNG fix http://www.twinhelix.com/css/iepngfix/ to a site I am building. The fix works on my PNGs apart from the PNGs having an ugly 1px white border around each of the transparent images. I have set the css img tag to the following:

}
img {
    border
none;
    
margin0px;
    
padding0px;

However, the white borders still appear in Internet Explorer 6. Can anybody think of what might fix this problem? I have been trying to solve it for three days now. Thanks.

Profile
 
 
Posted: 09 October 2008 10:15 AM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  10
Joined  2008-10-09

CSS Validator gives me this error:

Sorry! We found the following errors (1)
32   img, div, a, input   Property behavior doesn’t exist : url(iepngfix.htc)

Profile
 
 
Posted: 14 October 2008 03:50 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  14
Joined  2008-02-04
CyberDave - 09 October 2008 10:15 AM

CSS Validator gives me this error:

Sorry! We found the following errors (1)
32   img, div, a, input   Property behavior doesn’t exist : url(iepngfix.htc)

try

*{behavior:url(iepngfix.htc);}, that will include all elements

Profile
 
 
Posted: 14 October 2008 03:54 PM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  10
Joined  2008-10-09
littlechris1977 - 14 October 2008 03:50 PM
CyberDave - 09 October 2008 10:15 AM

CSS Validator gives me this error:

Sorry! We found the following errors (1)
32   img, div, a, input   Property behavior doesn’t exist : url(iepngfix.htc)

try

*{behavior:url(iepngfix.htc);}, that will include all elements

Good idea. Thanks.

Profile