Skip to main content
16-Pearl
April 9, 2018
Solved

Ridimensionare l'immagine di un pulsante

  • April 9, 2018
  • 1 reply
  • 1795 views

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

Best answer by Giuseppe_Fiore

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

1 reply

15-Moonstone
April 9, 2018

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