Jump to content

I can't get the banner image to resize on mobile

Recommended Posts

Site URL: https://lucky-iptv.com/

Hi,

So I'm having trouble getting the banner to resize on mobile. I tried a couple of things but I didn’t see any changes at all. I'll leave examples of what I tried. I also tried targeting the banner different ways but that was no good either 

<style>
  #banner{
    width:100%
    object-fit: contain;
    object-position: 50% 50%;
  }
</style>

 

Link to comment
  • Replies 5
  • Views 876
  • Created
  • Last Reply

Do you want it like this?

image.png.df1f98e366747474b625a81da4dc7d9c.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
4 minutes ago, Mandy-Mills said:

Yes, exactly!

Quote

@media only screen and (max-width: 640px) {
    #collection-5e1b647189643863812ccbb7 .Index-page-image img {
      width: 100vw !important;
      height: auto !important;
      left: 0 !important;
    }
}

 

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

@Mandy-Mills I see on tablet, the buttons not align, also some testimonial is a bit narrow.

You can add this to Design > Custom CSS to fix.

/* align buttons tablet */
@media screen and (max-width:991px) and (min-width:768px) {
div#block-yui_3_17_2_1_1605396240092_12502 + .row .button-block {
.span-3:nth-child(2), .span-3:nth-child(3) {
    width: 40%;
}
.span-3:nth-child(1), .span-3:nth-child(4) {
    width: 10%;
}
}
}

tablet.png.d5910f8c177062a6c7c721d08edbd58c.png

tablet2.png.68a9b7ab2c16e70da2991dbd90a7e3d0.png

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.