Connecting Tech Pros Worldwide Help | Site Map

PNG IE5.5 & AlphaImageLoader

zorgi's Avatar
Member
 
Join Date: Mar 2008
Location: here
Posts: 107
#1: Jun 29 '09
Hello Everyone

Have a problem with AlphaImageLoader. This is portion of CSS that makes me pull my hair out (and there is not much left to pull any more anyway)

Basically I have a div that has transparent png as a background. This png should be repeated as the div grows but since I need transparency I must use AlphaImageLoader for older IE browsers. This is the code:

Expand|Select|Wrap|Line Numbers
  1. /*from ie_older.css*/
  2. #theDiv{
  3.     width: 950px;
  4.     height: auto !important;
  5.     height: 479px;    
  6.     filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="project/view/images/img.png", sizingMethod="scale");
  7. }
  8.  
Works like a charm for IE6 but with IE5.5 crashes as soon as height is greater than given 479px and I can not keep it fixed height.... Any ideas/help much appreciated.

Thanks
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,560
#2: Jun 29 '09

re: PNG IE5.5 & AlphaImageLoader


Why are you setting height twice? auto and 479px?

I thought the two guys that were still using IE5.5 died.
zorgi's Avatar
Member
 
Join Date: Mar 2008
Location: here
Posts: 107
#3: Jun 29 '09

re: PNG IE5.5 & AlphaImageLoader


# height: auto !important;
# height: 479px;

is a hack for IE browsers. Its instead of min-height: 479px
zorgi's Avatar
Member
 
Join Date: Mar 2008
Location: here
Posts: 107
#4: Jun 29 '09

re: PNG IE5.5 & AlphaImageLoader


You are probably right about those two guys. The real question here probably is: "Do I still optimize for IE5?"
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,560
#5: Jun 29 '09

re: PNG IE5.5 & AlphaImageLoader


I know people who don't even optimize for IE6 anymore. My contracts specify I only handle the current and previous major version numbers of browsers. So that means IE7 and IE8 only.

I am still offering to write code that supports IE6 but at a 30% price markup.
zorgi's Avatar
Member
 
Join Date: Mar 2008
Location: here
Posts: 107
#6: Jun 29 '09

re: PNG IE5.5 & AlphaImageLoader


Quote:

Originally Posted by drhowarddrfine View Post

I am still offering to write code that supports IE6 but at a 30% price markup.

I like that :)

Thanks
Reply