If you are expecting the background color to fill the div around the edge of the square image, you need some padding.
If you expect the background color to fill in around an irregularly shaped object in the image, you have to do one of two things, because all images are rectangular:
1. Make the outside edge of the image the same color as the background.
2. Use a .gif file, and make the outside edge of the image transparent. Then the background color will show through.
If the outside edge of the image is white, it will show up as white.
Last edited by MidiMagic; Aug 11th, 2009 at 10:48 pm.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
Offline 3,314 posts
since Jan 2007