Jump to content

Hero Image on Mobile - Asking for CSS for correct size.

Recommended Posts

  • Replies 6
  • Views 421
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

1 hour ago, CreativeBloom said:

Site URL: https://www.creativebloomrocks.com/

Hi there, 

On our homepage, we currently have an image that has burned in text. 

When viewing on mobile, it crops this and therefore the text is not legible. 

Can anyone help suggest some code which allow the banner to appear full size on mobile and therefore not cropped. 

 

Thanks very much, Ollie

Screen Shot 2021-11-29 at 14.40.54.png

Try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  .banner-thumbnail-wrapper img {
    width: 100% !important;
    height: auto !important;
    left: 0 !important;
  }
  .banner-thumbnail-wrapper {
    padding: 0 !important;
  }
}

Let me know how it works on your site

Press 👍 or mark this answer as solution to help another one too

Edited by bangank36

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

My testing result

image.png.f0d89215cc9718e296a0aa14f7a051e3.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

Hi Bangank36, 

Thanks for getting back to me so quickly - appreciate this very much,

What i'm seeing after putting this code in the CSS is that the hero banner is removed completely and disappears on Mobile. Still present on desktop. 

Have cleared my cache and still doesn't show on mobile. 

Ollie

IMG_2193.PNG

Link to comment
8 minutes ago, CreativeBloom said:

Hi Bangank36, 

Thanks for getting back to me so quickly - appreciate this very much,

What i'm seeing after putting this code in the CSS is that the hero banner is removed completely and disappears on Mobile. Still present on desktop. 

Have cleared my cache and still doesn't show on mobile. 

Ollie

IMG_2193.PNG

The banner image is fine from my end. You try checking again

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
10 minutes ago, CreativeBloom said:

Hi Bangank36, 

Thanks for getting back to me so quickly - appreciate this very much,

What i'm seeing after putting this code in the CSS is that the hero banner is removed completely and disappears on Mobile. Still present on desktop. 

Have cleared my cache and still doesn't show on mobile. 

Ollie

IMG_2193.PNG

I access your site via my phone and it seems fine

261726360_1774416529435116_3212597883157073660_n.thumb.jpg.a76084fb72b319cdd7afbf298514fcd4.jpgC

Can you check it again?

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

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.