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
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Do you want it like this?

image.png.df1f98e366747474b625a81da4dc7d9c.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, 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;
    }
}

 

 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, 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

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.