I do I resize and center an image at the same time? I want the image to get resized automatically based on the device screen size, and get centered as well?
I do I resize and center an image at the same time? I want the image to get resized automatically based on the device screen size, and get centered as well?
Hello Mike,
You should define the size and spacing in relative units (% or vw/vh). That what can't be set via the Builder you should set via css
Hi, I have the following in CSS:
Code: Select all
.resize_fit_center {
max-width:100%;
max-height:100%;
vertical-align: middle;
margin-left: auto;
margin-right: auto;
}
It works perfectly fine, however, on 640 x 930, the image doesn't get centered. Can you please assist?
Regards,
Hello!
Are you sure that your image is not smaller then this size?
Please provide us with a public app link (http://devcenter.appery.io/documentat...) and steps to reproduce.