Jump to content

Removing blank space on mobile version of site

Recommended Posts

On 7/10/2023 at 10:49 PM, Mary_DG said:

Thank you @tuanphan I did it with 45vh. Is there anyway to decrease the space between the caption and the image:

 

image.png.e14770abc216c47c108e51cc20afe3be.png

I see you hide caption. Do you still need help?

On 7/11/2023 at 12:07 PM, rainystaterealtor said:

Hi @tuanphan I have the same issue on my site on the mobile view, at the bottom there is alot of whitespace.  its https://blue-marigold-t72j.squarespace.com pw is tinman . 

I would appreciate your help.

Try adding to Design > Custom CSS

/* Mobile homepage */
@media screen and (max-width:767px) {
body#collection-643ca45b9cbbd6195d8727ef section {
    height: 100vh !important;
    min-height: unset !important;
}
body#collection-643ca45b9cbbd6195d8727ef {
    overflow: hidden;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 7/17/2023 at 2:59 PM, Mary_DG said:

Hi Tuanphan, yes, please. I am still using 30vh until i have code that will decrease the space between the image and caption. Thank you. 

Hello @tuanphan hope you can get back to me. Also, 

On The Start of a Journey page, the album looks okay when the phone is held in portrait mode. But when the phone is turned into landscape mode, instead of the images on the album looking larger, they become extremely tiny. Any way for the image to respond to landscape mode?
 
image.thumb.png.a3d24d576478a157bb72a215287916e5.png
 
Link to comment
On 7/22/2023 at 8:20 AM, Mary_DG said:

Hello @tuanphan hope you can get back to me. Also, 

On The Start of a Journey page, the album looks okay when the phone is held in portrait mode. But when the phone is turned into landscape mode, instead of the images on the album looking larger, they become extremely tiny. Any way for the image to respond to landscape mode?
 
image.thumb.png.a3d24d576478a157bb72a215287916e5.png
 

Can you share link to this page?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Thank you so much for all your work Tuanphan, strange that Squarespace doesn't fix this issue since its recurring for years now.

 

On the mobile version of my website www.ernestleroy.com (on the homepage) there is a big white space below the Simple Gallery which makes the gallery very small on a mobile device. On desktop it all works fine. Do you have a solution?

Screenshot mobile:

image.thumb.png.c41f644dc2f3951cbbdda1a91643b6fb.png

Screenshot desktop:

image.thumb.png.f7db0253b5233e9e6e839196735eeb0f.png

Kind regards,

 

Ernest

Link to comment
15 hours ago, Ernest said:

Thank you so much for all your work Tuanphan, strange that Squarespace doesn't fix this issue since its recurring for years now.

 

On the mobile version of my website www.ernestleroy.com (on the homepage) there is a big white space below the Simple Gallery which makes the gallery very small on a mobile device. On desktop it all works fine. Do you have a solution?

Screenshot mobile:

image.thumb.png.c41f644dc2f3951cbbdda1a91643b6fb.png

Screenshot desktop:

image.thumb.png.f7db0253b5233e9e6e839196735eeb0f.png

Kind regards,

 

Ernest

Did you solve it or you still need to reduce white space under slideshow?

image.thumb.png.c76f55b7d1faefb47023350ee053fa45.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
5 hours ago, tuanphan said:

Did you solve it or you still need to reduce white space under slideshow?

image.thumb.png.c76f55b7d1faefb47023350ee053fa45.png

Thanks for the quick reply Tuanphan; strange that it looks normal on your emulated iPhone 12 pro. On my Google Pixel 6 pro and friends iPhone I still have the white space under the slide show.

 

This emulator shows the same:

 

image.thumb.png.d2a9eb1ce19182194a2a633368894e89.png

Link to comment
17 hours ago, Mary_DG said:

Try adding to Design > Custom CSS

/* Mobile Start of a journey page mobile */
@media screen and (max-width:767px) and (orientation:landscape) {
body#collection-62529309c36f381162dc8983 .gallery-slideshow {
    height: 150vh !important;
}
}

 

image.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
16 hours ago, Ernest said:

Thanks for the quick reply Tuanphan; strange that it looks normal on your emulated iPhone 12 pro. On my Google Pixel 6 pro and friends iPhone I still have the white space under the slide show.

 

This emulator shows the same:

 

image.thumb.png.d2a9eb1ce19182194a2a633368894e89.png

Try adding to Design > Custom CSS

/* Mobile slideshow */
@media screen and (max-width:767px) {
.gallery-slideshow {
    height: 100vh !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
3 hours ago, tuanphan said:

Try adding to Design > Custom CSS

/* Mobile slideshow */
@media screen and (max-width:767px) {
.gallery-slideshow {
    height: 100vh !important;
}
}

 

Thank you Tuanphan.

Already better! But now there is quite some white space above the photo. Is there a way to fix that?

 

image.thumb.png.497082976c0e5bd8a320c888b478eaa1.png

Link to comment
14 hours ago, Ernest said:

Thank you Tuanphan.

Already better! But now there is quite some white space above the photo. Is there a way to fix that?

 

image.thumb.png.497082976c0e5bd8a320c888b478eaa1.png

Can you disable autoscroll temporarily? We can test code easier

https://www.ernestleroy.com/

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
18 hours ago, Ernest said:

Yes of course, it is disabled now.

 

Thank you.

 

Use this code

/* Mobile slideshow */
@media screen and (max-width:767px) {
body.homepage .gallery-slideshow {
    height: 100vh !important;
}
body.homepage .gallery-slideshow img {
	object-fit: cover !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 7/27/2023 at 5:26 AM, tuanphan said:

Use this code

/* Mobile slideshow */
@media screen and (max-width:767px) {
body.homepage .gallery-slideshow {
    height: 100vh !important;
}
body.homepage .gallery-slideshow img {
	object-fit: cover !important;
}
}

 

Thank you again Tuanphan! The blank space is gone, but now the images are cropped on a mobile device. On a desktop (or use the option 'desktop site' on a mobile device) it works fine. Can you think of something to prevent the cropping?

 

Cheers,

Link to comment
On 7/25/2023 at 1:43 AM, tuanphan said:

Try adding to Design > Custom CSS

/* Mobile Start of a journey page mobile */
@media screen and (max-width:767px) and (orientation:landscape) {
body#collection-62529309c36f381162dc8983 .gallery-slideshow {
    height: 150vh !important;
}
}

 

image.png

Thank you again, Tuanphan, it worked great on hellocinnamon.com site. It is perfect. 

But I tried using the same code in our other website: www.aelo.ai

slideshow:simple gallery and it is not working. see screenshot below. Should i be using a different code?

 

 

IMG_4D523BFD3DD2-1.jpeg

Link to comment
16 hours ago, KelseyLenz said:

Hello, 

I'm having trouble with blank space under a gallery on mobile. 

https://www.treasuredtreatsidaho.com/gallery

Thank you for your help!

KelseyIMG_6121.thumb.jpeg.83086bcb3eda5f4166d7853d09602831.jpeg

Add to Design > Custom CSS

/* Mobile gallery space */
@media screen and (max-width:767px) {
.fe-64c6b924703b8d0a93af42c1 {
    grid-template-rows: repeat(590,minmax(24px, auto)) !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 7/31/2023 at 8:32 AM, Mary_DG said:

Thank you again, Tuanphan, it worked great on hellocinnamon.com site. It is perfect. 

But I tried using the same code in our other website: www.aelo.ai

slideshow:simple gallery and it is not working. see screenshot below. Should i be using a different code?

 

 

IMG_4D523BFD3DD2-1.jpeg

Can you share link to this page?

 

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 7/29/2023 at 8:27 PM, Ernest said:

Thank you again Tuanphan! The blank space is gone, but now the images are cropped on a mobile device. On a desktop (or use the option 'desktop site' on a mobile device) it works fine. Can you think of something to prevent the cropping?

 

Cheers,

If resize image to full size, the image will not be able to fill the height of the screen, and vice versa. We can adjust the image left or right (with the code) to make it display better.

Do you still need code?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

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

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.