Jump to content

Mobile Image resize - IDUMA

Recommended Posts

Site URL: https://bison-buttercup-bdpb.squarespace.com/

IDUMA template: 

Link:

https://bison-buttercup-bdpb.squarespace.com/ Password: 12345

(1) How to get the first image to display full width on mobile device?

I tried the following code but it leaves a grey background on mobile. 

@media screen and (max-width:640px) {
[data-section-id="5f249752d6f33d72e0925409"] .section-background img {
    width: 100% !important;
    height: auto !important;
}
}

2100672844_Screenshot2020-08-02at21_54_51.thumb.png.10a3940a0546978e8a7d1a11fb19d356.png

(2) How to get the last image - height large on desktop but small on mobile?

18918588_Screenshot2020-08-02at21_56_34.thumb.png.008edf77a00612af7752106aa246165d.png

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Q1. Q2. Remove your code & add this code

@media screen and (max-width:767px) {
/* homepage first banner */
.homepage #page section:nth-child(2) {
    min-height: 20vh !important;
    height: 30vh !important;
}
/* last image */
[data-section-id="5f249752d6f33d72e092540f"] {
    min-height: 20vh !important;
    height: 30vh !important;
}
}

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.