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

Link to comment
  • Replies 2
  • Created
  • Last Reply

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

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

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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!

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.