cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Ridimensionare l'immagine di un pulsante

Matteo_1987
15-Moonstone

Ridimensionare l'immagine di un pulsante

Sto creaando un pulsante Immagine.

devo centrare e ridimensionare  l'immagine rispetto al tasto.

come devo fare? (vedi immagine)

questa è l'esrcitazione che sto facendo:

https://support.ptc.com/help/thingworx_hc/thingworx_studio/en/#page/ThingWorx_Studio_Help_Center%2FIntermediateCSSImageButton.html%23

Grazie Matteo

1 ACCEPTED SOLUTION

Accepted Solutions

devi cambiare il CSS usando i comandi 

 

background-size: 30px 30px;
background-repeat: no-repeat;
background-position:center;

 

nella sezione .image

 

sotto ti allego un esempio  : 

 

.image, .image.activated {
background-image: url(../app/resources/Uploaded/play.png); 
background-size: 30px 30px;
background-repeat: no-repeat;
background-position:center;
}

 

saluti

Giuseppe

View solution in original post

1 REPLY 1

devi cambiare il CSS usando i comandi 

 

background-size: 30px 30px;
background-repeat: no-repeat;
background-position:center;

 

nella sezione .image

 

sotto ti allego un esempio  : 

 

.image, .image.activated {
background-image: url(../app/resources/Uploaded/play.png); 
background-size: 30px 30px;
background-repeat: no-repeat;
background-position:center;
}

 

saluti

Giuseppe

Top Tags