Textured buttons: Why is there no “no repeat”?

knowledgebase

(Oliver) #1

Why is there no “no repeat”?


#2

The default, ‘scale to fit’ will not repeat the image across the X or Y axis. You could also add an image to the inner HTML of a button by clicking it, selecting Edit > Edit Inner HTML, and then including an HTML image tag.

For example, you could use:

<img src="background-image: url('${resourcesFolderName}/smiley.gif');background-repeat: no-repeat;background-attachment: fixed;background-position: center;">

… in the background of your button which would attach the image to the center of the button.


(Oliver) #3

My aim was to add some spacing around the image. With the addition of height, the background-image gets repeated what’s not the point of my goal. I fixed my problem by adding a transparent border.