piazon79 Posted October 30, 2008 Share Posted October 30, 2008 im using a .png for a logo on my website but want it transparent so all you see is the logo. here is the line of code that is used to display the image with "title.png" being the image in question: <td align="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'title.png', STORE_NAME) . '</a>'; ?></td> What code do I add to make the background of this image transparent? The background is white if that helps. Thanks Quote Link to comment Share on other sites More sharing options...
Mchl Posted October 30, 2008 Share Posted October 30, 2008 You save the image as having a transparent background. You don't define it in HTML Quote Link to comment Share on other sites More sharing options...
piazon79 Posted October 30, 2008 Author Share Posted October 30, 2008 i thought there was code that you could set a certain color in a pic as being transparent? I don't have photoshop or anything to give the image transparency. Quote Link to comment Share on other sites More sharing options...
Mchl Posted October 30, 2008 Share Posted October 30, 2008 Try IrfanView Quote Link to comment Share on other sites More sharing options...
piazon79 Posted October 30, 2008 Author Share Posted October 30, 2008 thanks, i just downloaded that program and changed my background to transparent, looks great now! Thanks for your help! Quote Link to comment Share on other sites More sharing options...
Yesideez Posted November 3, 2008 Share Posted November 3, 2008 Be aware that IE 6 and earlier can't display transparency with PNG files properly - Firefox works no problem. There is a Javascript script somewhere that fixes this minor issue. http://homepage.ntlworld.com/bobosola/pnghowto.htm Quote Link to comment 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.