D buiss
D buiss

Reputation: 173

transparent image is giving a white background

I have downloaded a transparent image to apply on a button but it is giving a white background while applying with css in javafx.

This image

Upvotes: 1

Views: 364

Answers (2)

Joao Paulo
Joao Paulo

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

Dananjaya Ariyasena
Dananjaya Ariyasena

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

Related Questions