Jump to content

How to make image shorter on mobile only

Recommended Posts

Hi there,

I have upgraded a section of my website and my custom code I had is no longer working and it's showing the first image on the homepage as really long on mobile. I've tried changing a few things but nothing seems to be working?

Thanks in advance!

Screenshot 2023-11-12 at 8.54.07 pm.jpeg

Link to comment
36 minutes ago, SSS23 said:

Hi there,

I have upgraded a section of my website and my custom code I had is no longer working and it's showing the first image on the homepage as really long on mobile. I've tried changing a few things but nothing seems to be working?

Thanks in advance!

Screenshot 2023-11-12 at 8.54.07 pm.jpeg

Can you share your website URL?

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
15 hours ago, SSS23 said:

Ah yes sorry - https://www.sunseekerstudios.com.au/

Current code is:

@media screen and (max-width:767px) { section[data-section-id="61e0e46f79f3bd4d5975f1c8"] { min-height: 35vh !Important; margin-top: 15vh; } }

Replace the code with the code below.

@media screen and (max-width: 767px) {
    section[data-section-id="654c29e3f9c507400f9e900a"] {
        min-height:35vh !important;
    }
}

 

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

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.