Jump to content

Increase left and right padding for a single block on mobile only

Recommended Posts

On 12/5/2021 at 8:59 PM, hannahpellatt said:

Site URL: https://pentagon-snail.squarespace.com

I've almost worked out how to do this but I must have something missing... simply want to increase the left and right padding here so that the images and line lengths shrink down. TIA.

Site page: Work with me
Site password: kerri2021

Screenshot 2021-12-05 at 13.56.17.png

Is it the result you want to achieve?

image.png.cd264cb70f9af3f3d22d560d2093d9d8.png

Edited by bangank36

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

Try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
	section[data-section-id="619a43614651a2655ac784be"] .content-wrapper {
		--padvalue: 40px;
		margin-left: var(--padvalue) !important;
		margin-right: var(--padvalue) !important;
	}
}

Let me know how it works on your site

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

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

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.