AV1611 Posted January 11, 2008 Share Posted January 11, 2008 Can someone help me... I've googled but can't seem to figure out how to do this: .png images with transparency that work in Moz & IE Let's do something real simple: <html> <head> <title></title> </head> <body> <img src="FileWithTransparency.png" alt="" /> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/85606-png/ Share on other sites More sharing options...
phpQuestioner Posted January 12, 2008 Share Posted January 12, 2008 here is one quick way to do this with CSS: <html> <head> <title></title> </head> <body> <img src="FileWithTransparency.png" alt="" style="-moz-opacity:0.00;filter:alpha(opacity=0)" /> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/85606-png/#findComment-437056 Share on other sites More sharing options...
AV1611 Posted January 12, 2008 Author Share Posted January 12, 2008 Will the pass w3c validation and w3c css validation? Quote Link to comment https://forums.phpfreaks.com/topic/85606-png/#findComment-437428 Share on other sites More sharing options...
phpQuestioner Posted January 12, 2008 Share Posted January 12, 2008 You might want to add the css to an external stylesheet; inline style might not validate. Other then that; I do not see why not, because this is common css markup styles. Quote Link to comment https://forums.phpfreaks.com/topic/85606-png/#findComment-437500 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.