I have a .gif image that I am using as the background of an absolutely positioned div element.
The trouble is- .gif automatically makes my pretty transparent background white when I save it and I need it to be transparent.
In a wysiwyg editor, often I can select the image and use a 'wand' to tell it which color to hide. Once these images are in my div class, I can no longer select it... infact, even when they are not in the div I cannot select it in my editor to get at the 'wand'....
Can anyone tell me how, with CSS, to make the white fields surrounding my images to disappear?
There has got to be a simple way to do it and I have just missed something.
Is the white background on the image itself when you save it, or does the white background apply on the page when you insert it as a background?
Haven't tested this, but try
style="background: transparent url(mypic.gif) center no-repeat;"
In a world without walls and fences - who needs Windows and Gates?! - Unknown Author
"And there's Bill Gates, the...most...famous...man in the...ah...Microsoft." -- A TV commentator for the 2000 Olympics.
Bookmarks