A transparent image is probably unnecessary on a website if you use CSS. Check out the margin and padding elements.
However, if you do wish to use an image:
Create one in the right size ( or resize the current canvas) and ensure it has only one layer.
Hit Ctrl+A to select all of the image
Press Delete to remove everything on the layer
Go to File > Save As.., and select the *.GIF file format
Click save