I have a simple button, but I can't make the icon to be centered on it.
{
xtype: 'button',
width: 150,
height: 150,
cls: 'startbutton'
}
css:
.startbutton {
background-image: url(Camera.png) !important;
}
This image is 72x72 pixels.
I think,you need background-position:
.startbutton {
background-position: center center;
background-image: url(Camera.png) !important;
}
Is there reason you're not using standard things:
icon: '',
iconAlign: 'center'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With