Jump to content

Mobile Cropping (Slide Content Height)

Recommended Posts

Site URL: https://nordicadesign.ie/

Hello Folks,

So I'm building this site and have run into a problem with the cropping on the mobile view. I can get it looking ok on mobile by setting the slide content height to "S" but then the desktop view isn't great as it needs it at "L" and its restricted for using only setting.

Hoping a wizard could work up some code so that i can have the images set to "L" on desktop and "S" on mobile view please.

Thanks in advance!

R.

https://nordicadesign.ie/

Link to comment
On 8/19/2021 at 2:33 AM, Alaskii said:

Site URL: https://nordicadesign.ie/

Hello Folks,

So I'm building this site and have run into a problem with the cropping on the mobile view. I can get it looking ok on mobile by setting the slide content height to "S" but then the desktop view isn't great as it needs it at "L" and its restricted for using only setting.

Hoping a wizard could work up some code so that i can have the images set to "L" on desktop and "S" on mobile view please.

Thanks in advance!

R.

https://nordicadesign.ie/

Hi, Add to Design > Custom CSS > Then save & reload the site

@media screen and (max-width:767px) {
body.homepage ul.slides.slides--initialized {
    min-height: 50vh !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
20 hours ago, tuanphan said:

Hi, Add to Design > Custom CSS > Then save & reload the site

@media screen and (max-width:767px) {
body.homepage ul.slides.slides--initialized {
    min-height: 50vh !important;
}
}

 

Thanks @tuanphan that worked a treat!

Would you mind having a look at the 3 main section pics below please? 

I had a look to see if i could alter that to work for the others too but at a loss - i think the other 3 are "headlines" maybe .page-section?

Thanks!

R.

Link to comment
8 hours ago, Alaskii said:

Thanks @tuanphan that worked a treat!

Would you mind having a look at the 3 main section pics below please? 

I had a look to see if i could alter that to work for the others too but at a loss - i think the other 3 are "headlines" maybe .page-section?

Thanks!

R.

replace this

Quote
body.homepage

with data-section-id

Use this tool to find data section id

https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

 

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.