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 format)
💫 Animated Buttons (Referral URL)
🥳 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 format)
💫 Animated Buttons (Referral URL)
🥳 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

@technicolordaisy Don't remove any code in your current code.

Add to Design > Custom CSS

section#yoga-offerings>div {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

 

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.