Jump to content

White borders appear on left and right of product images on iOs only


docprego@me.com

Recommended Posts

I have my product image size set to 800 x 800 and have uploaded the images at exactly that size.  When viewing in a computer web browser the product images fit exactly with no white borders.  When viewed in grid mode 4 product images are shown in each row with no white borders.  Even when switched to list mode there are still no white borders.

 

However on iOS my site behaves differently on an iPad Mini and an iPhone 7 Plus.

 

On iPhone in portrait mode the images are fine, in landscape mode there's a thin white border on the left and right.  

 

On iPad in portrait mode there's a thin white border on the left and right, in landscape mode the images are fine. 

 

Why does Prestashop do this?  Is there a way I can make the images appear with no borders at all times as they do in a computer web browser?

 

 

Thank you!

Edited by [email protected] (see edit history)
Link to comment
Share on other sites

Yes, in css, more exactly it should be in themes/name_of_your_theme/css/product_list.css or global.css

 

I could tell exactly in what file and which line if you would give me the link

I have solved this problem.  Turned out that my home_default image was set to 250 x 250 which resulted in the white space.  I increased it to 400x400 and all images now display without white space.

Edited by [email protected] (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...