Jump to content

Adjust padding for image in single index page

Recommended Posts

Site URL: https://www.mistymountainyoga.com/#yoga-offerings

Hello,

I am trying to make the image in the section I have linked #yoga-offerings full width, centered, and flush with the section above it on all devices. 

I was playing with this code but it seems to only push the image all the way left leaving the padding on the left that seems to be a part of the index page styling.

#block-yui_3_17_2_1_1631202640121_19946 
{margin-top: 0px; 
margin-right: 0px; 
margin-bottom:0px;
margin-left: 0px;
z-index:99;
width: 110vw}

Link to comment
On 11/25/2021 at 12:17 AM, technicolordaisy said:

Site URL: https://www.mistymountainyoga.com/#yoga-offerings

Hello,

I am trying to make the image in the section I have linked #yoga-offerings full width, centered, and flush with the section above it on all devices. 

I was playing with this code but it seems to only push the image all the way left leaving the padding on the left that seems to be a part of the index page styling.

#block-yui_3_17_2_1_1631202640121_19946 
{margin-top: 0px; 
margin-right: 0px; 
margin-bottom:0px;
margin-left: 0px;
z-index:99;
width: 110vw}

I 've found that the setting 110vw caused your issue. Do you have any idea about this setting?

image.thumb.png.6680497dd234c99ca63140817c71422c.png

 

You can add the following code in Home > Design > Custom Css to fix it

#block-yui_3_17_2_1_1631202640121_19946 {
  width: unset;
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

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.thumb.png.b9181d772bdc90de394f873cbfdce645.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

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.