Jump to content

How to vertically-align text block and button on Mobile

Recommended Posts

Site URL: http://www.takebackyourcareerpodcast.com

Hello,

The content on my opening section is center aligned. The problem is that on desktop it looks perfectly centered but on mobile text blocks and button are much lower of the viewing area. I believe these blocks are centered vertically but that the section's height falls below the screens viewing area making the text blocks and button look low on the main page on mobile.

Is there a way to move the text blocks and button up on mobile only so that it "looks" centered vertically?

Thank you!

Site password: boots135

Screen Shot 2020-11-02 at 10.00.37 PM.png

IMG_CD4312E24690-1.jpeg

Edited by gogreenmsu
Link to comment

Problem is the padding top is saved for header, but you used a transparent one

section[data-section-id="5f728df4a2487d69f23c6e91"] {
  padding: 0 !important;
}

 

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
15 hours ago, bangank36 said:

Problem is the padding top is saved for header, but you used a transparent one



section[data-section-id="5f728df4a2487d69f23c6e91"] {
  padding: 0 !important;
}

 

That looks much better, thank you! I think it will look perfect on mobile once I am able to prevent the text boxes from wrapping (as described in this other thread I started. Thank you again for your help!

 

Edited by gogreenmsu
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.