Jump to content

Resize the banner slideshow specifically for mobile devices

Go to solution Solved by tuanphan,

Recommended Posts

@tuanphan Thanks for reply. The image appears full-size on mobile, but it's too small, particularly in terms of height. I would like to increase the height slightly more.

On the Projects page, below is a preview of how it appears on mobile. ( Certainly, I don't require it to be as large as that. )

Screenshot2024-03-26at08_42_44.thumb.png.818ea233c9f3323824e8b0f9248b4f46.png

I would appreciate your assistance in increasing the size of the homepage banner on mobile devices. It's acceptable if the image gets cropped, but please ensure that the text remains on the left side.

Thank you once again for your assistance.

Link to comment

You can use this to Website > Website Tools > Custom CSS
 

@media screen and (max-width:767px) {
section#home-banner, section#home-banner .Index-gallery-wrapper.gallery-root {
    height: 350px !important;
}
section#home-banner img {
    left:0 !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

 

@tuanphanThank you very much for your assistance! Everything is functioning as expected. However, the client now prefers to display the entire image. They feel that too much of the image was cut off.

I apologise for any confusion and appreciate your continued support with this matter.

 
Link to comment
  • Solution
On 3/28/2024 at 5:49 AM, Xiaodan said:

 

@tuanphanThank you very much for your assistance! Everything is functioning as expected. However, the client now prefers to display the entire image. They feel that too much of the image was cut off.

I apologise for any confusion and appreciate your continued support with this matter.

 
 

Use this new code, we will need to reduce its height

@media screen and (max-width:767px) {
section#home-banner, section#home-banner .Index-gallery-wrapper.gallery-root {
    height: 120px !important;
}
section#home-banner img {
    left:0 !important;
    width: 100% !important;
    height: auto !important;
    top: 0 !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

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.