Reputation: 173
I have downloaded a transparent image to apply on a button but it is giving a white background while applying with css in javafx.
Upvotes: 1
Views: 364
Reputation: 199
As everyone on this post said: .png and .svg image has transprent suport. The .gif type has that option too, maybe this site could help you: https://www.flaticon.com/ Just remember to see the license of the image.
Upvotes: 1
Reputation: 606
.jpg
files can't have a transparent background. If you want the transparent background you have to use .png
or .svg
formatted file.
Upvotes: 4