Link to home
Start Free TrialLog in
Avatar of vidhubala
vidhubala

asked on

GIF vs PNG

can we make the GIFS just like PNGs and can get transparency out of it.
for eg if i place a gif on a background color, should be able to see the color thru the GIF.
<div style="background-color:blue"><img src="1.gif" />

thanks
1.gif
Avatar of toggo
toggo

Yes if you're using a transparent GIF.
Avatar of vidhubala

ASKER

how do we make transparent gifs?
you just don't put any color in the area that you want transparent
if you are using adobe ps, make your button like you have it, select the text (ctrl+click in the layers box) click on your box shape (in the layers box) hit delete, then delete your text
use adobe photoshop to make transparent photoshop files, with background set to transparent, and save to either GIF or PNG format interchangeably -- i.e. it can save the photoshop file to either format.
i couldnt make it transparent in photoshop. i tried all options but when i save it as gif with 128 no dither after applying 50% opacity. but when its displayed it becomes opaque. pl suggest steps in ps.

tra.gif
ASKER CERTIFIED SOLUTION
Avatar of David S.
David S.
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
can u pl provide me an example of that code working in a html sample page.