Mike6979865
Posts: 0
Joined: Fri Jul 11, 2014 3:53 pm

Center and Resize Image

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?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Center and Resize Image

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

Mike6979865
Posts: 0
Joined: Fri Jul 11, 2014 3:53 pm

Center and Resize Image

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,

obullei
Posts: 0
Joined: Thu Jun 05, 2014 12:17 am

Center and Resize Image

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.

Return to “Issues”