Jump to content

How to Center text vertically on the page

Go to solution Solved by Beyondspace,

Recommended Posts

  • Solution
On 3/10/2022 at 10:54 PM, chuckleburger said:

Site URL: https://tarantula-dogfish-65gt.squarespace.com/

On the cover page of the website I want to center the text vertically on the page, particularly on mobile. I've made things just affect mobile, but none of the solutions I tried would make the text center correctly vertically on the page.

Try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  section[data-section-id="5fa08fed306ad854b4d98bd9"] .content-wrapper {
    padding: 50% 0 !important;
  }
}

Let me know how it works on your site

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, Lightbox Studio plugin
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
On 3/15/2022 at 12:20 PM, bangank36 said:

Try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  section[data-section-id="5fa08fed306ad854b4d98bd9"] .content-wrapper {
    padding: 50% 0 !important;
  }
}

Let me know how it works on your site

It worked! Thank you so much! Is it possible to make the large text closer to the smaller text?

Link to comment
On 3/20/2022 at 1:57 AM, chuckleburger said:

It worked! Thank you so much! Is it possible to make the large text closer to the smaller text?

You mean on mobile? Add to Design > Custom CSS

/* Mobile - space h1 - p */
@media screen and (max-width:767px) {
#block-yui_3_17_2_1_1610138058146_2028 h1 {
    margin-bottom: 0px;
}
}

 

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.