Jump to content

Mobile navigation - align text centre

Recommended Posts

Site URL: https://tmforwomen.squarespace.com/

Hello, I have used the below code to centre align my mobile navigation text. I would like to move the text down so it is aligned in the centre vertically also. Is there a way to do this? Many thanks :)

// Center Mobile Text //
.Mobile-overlay-nav-item, .Mobile-overlay-folder-item { text-align: center;}  .Mobile-overlay-menu {width: 100%; z-index: 1;}

956576661_ScreenShot2021-10-14at9_07_42pm.thumb.png.3053ae6b5dc2bd38ba634dac0474061d.png

Link to comment
  • Replies 3
  • Views 673
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

2 hours ago, earthwindflowermoon said:

Site URL: https://tmforwomen.squarespace.com/

Hello, I have used the below code to centre align my mobile navigation text. I would like to move the text down so it is aligned in the centre vertically also. Is there a way to do this? Many thanks 🙂

// Center Mobile Text //
.Mobile-overlay-nav-item, .Mobile-overlay-folder-item { text-align: center;}  .Mobile-overlay-menu {width: 100%; z-index: 1;}

956576661_ScreenShot2021-10-14at9_07_42pm.thumb.png.3053ae6b5dc2bd38ba634dac0474061d.png

Try adding to Home > Design > Custom Css

/*main menu*/
.Mobile-overlay-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform:translate(-50%,-50%)
}
/*folder menu*/
.Mobile-overlay-folder {
  display: flex;
  flex-direction: column;
  justify-content:center;
  align-items: center;
}

Support me by pressing 👍 if this useful for you

Edited by bangank36

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 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

Main mobile menu

image.png.7004afde0378545779b678b64a96bbab.png

 

Sub menu

image.png.bc18153b09ee4e0cd7089fe73f1bac0c.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 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

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.