Jump to content

Image block on mobile - reducing padding around text

Go to solution Solved by ErikaT,

Recommended Posts

  • Solution

Hi,

You could try the below if you want it side-wide (mobile only)

@media screen and (max-width:767px) {
.image-card-wrapper .sqs-dynamic-text-container {
    padding: 15px !important;
}
}

Or if you just want that particular section that you've screenshotted it would be:

@media screen and (max-width:767px) {
[data-section-id="6035cd4ae85bca53ec1e45af"] .image-card-wrapper .sqs-dynamic-text-container {
    padding: 15px !important;
}
}

Thanks!

Erika

Link to comment
  • 2 weeks later...

Thank you so much Erika! That code worked perfectly!

Now that I've done that, I'm wondering how might I edit a stacked image block that shows the photo at the top of the text on desktop, but on mobile it shows photo at the bottom of the text? I would like the photo to be at the top of the text no matter what width.

Page: https://sealion-poodle-8mph.squarespace.com/about

(halfway down)

 

784797319_ScreenShot2021-03-19at2_16_38PM.thumb.png.189591623d911158f77322a972b2dcc3.png

Link to comment
On 3/20/2021 at 3:18 AM, Polinamireau said:

Thank you so much Erika! That code worked perfectly!

Now that I've done that, I'm wondering how might I edit a stacked image block that shows the photo at the top of the text on desktop, but on mobile it shows photo at the bottom of the text? I would like the photo to be at the top of the text no matter what width.

Page: https://sealion-poodle-8mph.squarespace.com/about

(halfway down)

 

784797319_ScreenShot2021-03-19at2_16_38PM.thumb.png.189591623d911158f77322a972b2dcc3.png

Do you still need help?

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.