Connecting Tech Pros Worldwide Help | Site Map

PNG IE5.5 & AlphaImageLoader

  #1  
Old June 29th, 2009, 03:13 AM
zorgi's Avatar
Member
 
Join Date: Mar 2008
Location: here
Posts: 107
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
  #2  
Old June 29th, 2009, 04:14 AM
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,521

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.
  #3  
Old June 29th, 2009, 07:14 AM
zorgi's Avatar
Member
 
Join Date: Mar 2008
Location: here
Posts: 107

re: PNG IE5.5 & AlphaImageLoader


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

is a hack for IE browsers. Its instead of min-height: 479px
  #4  
Old June 29th, 2009, 08:21 AM
zorgi's Avatar
Member
 
Join Date: Mar 2008
Location: here
Posts: 107

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?"
  #5  
Old June 29th, 2009, 02:41 PM
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,521

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.
  #6  
Old June 29th, 2009, 03:06 PM
zorgi's Avatar
Member
 
Join Date: Mar 2008
Location: here
Posts: 107

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