Hello,

I have finished and uploaded a website using the Fontfolio theme. www.irishartistmichaellodge.com

It's looking good but the site is distorted on the iPhone screen (5S). The images are all squished. They are fine on another smart phone I tried (Samsung Galaxy Note 4) and also on the iPad. Please see screenshots attached. The first two are from the iPhone and the second two are from the Samsung. As you can see, the iPhone is severely distorted.

I haven't changed the breakpoints in the media queries. As this is a portfolio site, it is really important that the images aren't distorted.

Can anyone help?

Many thanks in advance.

M

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lilbebel created an issue. See original summary.

lilbebel’s picture

Issue summary: View changes
lilbebel’s picture

Hello,

I solved the issue with some CSS coding and an adjustment to my image styles.

The code is as follows:

In 'my-custom-ff-md-queries.css', I added (note I changed the small screen from 320px to 480px):

/* Landscape smartphones, narrow tablets and below */

@media screen and (max-width: 767px) {
.big-post-box img,
.big_post_box img {
height: inherit;
width: auto;
width: 100%;
}

.post-box img,
.post_box img {
height: auto;
max-height: 281px;
width: auto;
width: 100%;
}
}

@media screen and (max-width: 480px) {
.post-box,
.post_box {
width: auto;
float: none;
max-width:100%;
margin: 0 auto;
min-height: 281px;
}
}

In the file my-custom-ff.css, I added:

.big-post-box img, .big_post_box img {
max-width: 562px;
}

.big-post-box img,
.big_post_box img {
width: auto;
max-height: 562px;
display: block;
margin: 0 auto;
}

.post-box img, .post_box img {
width: auto;
max-width:100%;
max-height: 212px;
display: block;
margin: 0 auto;
}

Then, in the image styles, I added:

Thumbnail image style
Scale 281x281 (upscaling allowed)
Scale and crop 281x281

Medium image style
Scale and crop 562x562

It works now on the iPhone and other devices.

I hope that helps someone.

M

lilbebel’s picture

Status: Active » Closed (fixed)