Jump to content

Custom CSS for responsive mobile img,

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 3
  • Views 426
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution
15 hours ago, danielkalves said:

Site URL: https://flounder-endive-g7et.squarespace.com/

Hey guys, can someone help me with a custom CSS to make that img (attached) responsive to mobile?

The password is: 123456

 

Screen Shot 2021-11-22 at 11.30.41 AM.png

Add to Design > Custom CSS

@media screen and (max-width:767px) {
[data-section-id="612ef50cef0da00145dc943d"] {
    min-height: unset !important;
    height: 30vh;
}
}

 

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 11/24/2021 at 4:11 AM, danielkalves said:

Love it! Thanks once more.

It looks like problem appears on both mobile & tablet. Use this new code

@media screen and (max-width:991px) {
[data-section-id="612ef50cef0da00145dc943d"] {
    min-height: unset !important;
    height: 30vh;
}
}

(I changed 767px to 991px)

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.