An image on a push button?

Bonjour,

Can we put an image as a background push button ?
Or can we set an image to react as a push button ?
the idea is to associate a bird picture to his song ?

Yes, using the button’s css property:

background:url(/path/to/file.png);
background-size: cover;

It also possible to set the button’s css to background: transparent; and put an image widget behind it (css z-index can be used to set the widgets’ stacking order if needed).

3 Likes