Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Transparent Button Background - Please Help!


msarno

Recommended Posts

Posted

I am customizing OSCommerce and have run into a problem that is driving me crazy. I have now expended a great deal of time trying to understand and fix this issue with no success.

 

I have had absolutely no problem creating category, product, and infobox corner images as gifs with a transparent background. They display beautifully.

 

However I created a button set (gifs) that have slightly rounded corners and that need to display against two different background colors (e.g. infobox, product listing) so I made the button backgrounds transparent. Unfortunately they display as a white square (slightly larger than the colored part of the image) with the button image inside of it. If I change the background to a solid color the button displays properly.

 

I have checked the code that is generating the HTML to display the buttons and there is no class associated with the a link.

 

Does anyone have a suggestion or solution?

 

Thanks in advance . . . Mike

Posted

Got a link so we can take a look?

Even at a Mensa convention someone is the dumbest person in the room.

Posted

I'm looking at the button and it displays exactly the way its in the the file - I opened it in Photoshop, looks like you have like a drop shadow or something that is matted white instead of the background color. Remember that transparent GIF only knows transparent or not transparent, so when you have something semi-opaque like a drop shadow, it is actually saved as the mixed color between the shadow and the matte in the background. Depending on what you used when you made those buttons, you should be able to define a background color and it will look fine.

 

Did I make sense?

Even at a Mensa convention someone is the dumbest person in the room.

Posted
I'm looking at the button and it displays exactly the way its in the the file - I opened it in Photoshop, looks like you have like a drop shadow or something that is matted white instead of the background color. Remember that transparent GIF only knows transparent or not transparent, so when you have something semi-opaque like a drop shadow, it is actually saved as the mixed color between the shadow and the matte in the background. Depending on what you used when you made those buttons, you should be able to define a background color and it will look fine.

 

Did I make sense?

 

:thumbsup:

 

Perfect Sense!!! I was so focused on getting this finished that I completely forgot about the matte color. I redid the buttons with the appropriate matte color and they look just like they should.

 

I cannot thank you enough for taking the time to look at this and provide me the solution I so desperately needed.

 

Thank you again . . . have a great week!

 

Mike

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...