Jump to content

create padding on mobile version with code

Recommended Posts

You can use Spacer Block, then add this code to Page Header  to make spacer not disappear on mobile

<style>
  @media screen and (max-width:767px) {
    .spacer-block {display: block !important;}
  }
</style>

 

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
20 hours ago, SolveigTraeet said:

@tuanphan Thank you for replying! But now the space got too big everywhere on mobile. I just want space above the line over newsletter block on mobile version, not everywhere on my page. Is this possible?

You can replace .space-block with  spacer-block-id.

Use  this tool to find id. https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

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.