Jump to content

Add vertical spacing between text boxes on mobile

Recommended Posts

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

Hi there! I have some text boxes that I used custom CSS to add a background color to, and on desktop it looks great! But when they stack on mobile, there's no space/padding between them. I tried to add some additional CSS to add padding on top of each block, but still no luck. Also no luck adding spacer blocks in. I'm self taught in HTML and CSS and am sure there's an easy way to do this that I'm just not seeing. Thanks in advance! 

CSS used for block bg color: 

#block-yui_3_17_2_1_1642214641397_9379 {
background: #C78A66;
padding: 50px;
text-align: center;
}

Screenshot 2022-01-27 130026.png

Screenshot 2022-01-27 125925.png

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

2 hours ago, mkhairstylist said:

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

Hi there! I have some text boxes that I used custom CSS to add a background color to, and on desktop it looks great! But when they stack on mobile, there's no space/padding between them. I tried to add some additional CSS to add padding on top of each block, but still no luck. Also no luck adding spacer blocks in. I'm self taught in HTML and CSS and am sure there's an easy way to do this that I'm just not seeing. Thanks in advance! 

CSS used for block bg color: 

#block-yui_3_17_2_1_1642214641397_9379 {
background: #C78A66;
padding: 50px;
text-align: center;
}

Screenshot 2022-01-27 130026.png

Screenshot 2022-01-27 125925.png

Try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  section[data-section-id="61e2623d15030f1b54258701"]  .sqs-layout > .row:last-child > .col {
    margin-bottom: 10px;
  }
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

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.