Reply
PNG in Background Image CSS for IE
Old 11-08-2006, 09:25 PM PNG in Background Image CSS for IE
Skilled Talker

Posts: 56
Name: Mike
Has anyone fiugured out how to get IE 5.5 and 6 to see a Transparent PNG correctly as a BG Image in a CSS file...

Code:
#TB_window {
    position: absolute;
        background-image: url(popupBG.png); 
        background-repeat: no-repeat; 
        background-position: center; 
    z-index: 102;
    color:#000000;
    display:none;
    border: 1px solid #525252;
    text-align:left;
        overflow:  hidden;
}
I currently am using a gif, but it looks like crap!!!
__________________
Please visit my current site in progress to give comments or suggestions: www.alillywilson.com.
MandASystems is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 11-08-2006, 10:05 PM Re: PNG in Background Image CSS for IE
SHydroxide's Avatar
Skilled Talker

Posts: 74
Name: Steve
Location: Canuckistan
Quote:
Originally Posted by MandASystems View Post
Has anyone fiugured out how to get IE 5.5 and 6 to see a Transparent PNG correctly as a BG Image in a CSS file...

Code:
#TB_window {
    position: absolute;
        background-image: url(popupBG.png); 
        background-repeat: no-repeat; 
        background-position: center; 
    z-index: 102;
    color:#000000;
    display:none;
    border: 1px solid #525252;
    text-align:left;
        overflow:  hidden;
}
I currently am using a gif, but it looks like crap!!!
If it's the background, why does it have to be transparent?
__________________
This is my edited bleeding signature.
SHydroxide is offline
Reply With Quote
View Public Profile Visit SHydroxide's homepage!
 
Old 11-09-2006, 12:00 AM Re: PNG in Background Image CSS for IE
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
This is NOT standards-compliant, but it does work:
Code:
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src='popupBG.png');
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 11-09-2006, 02:31 AM Re: PNG in Background Image CSS for IE
Super Talker

Posts: 124
Name: Chris
Quote:
Originally Posted by ADAM Web Design View Post
This is NOT standards-compliant, but it does work:
Code:
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale src='popupBG.png');
That's the only thing that will make it work. unfortunately IE does not support alpha transparencies of png's (I dont even think IE7 beta supports it), why I do not know because the format is much better than gif and legal.
__________________
Chris - Trying to help others and learn myself!
http://www.nvision-media.com
ctess is offline
Reply With Quote
View Public Profile
 
Old 11-09-2006, 03:31 PM Re: PNG in Background Image CSS for IE
LadynRed's Avatar
Super Moderator

Posts: 6,731
Location: Tennessee
IE 7 DOES now support transparent PNGs
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is online now
Reply With Quote
View Public Profile
 
Reply     « Reply to PNG in Background Image CSS for IE
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.57773 seconds with 12 queries