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

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, Keyword Highlighter
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

Main mobile menu

image.png.7004afde0378545779b678b64a96bbab.png

 

Sub menu

image.png.bc18153b09ee4e0cd7089fe73f1bac0c.png

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, Keyword Highlighter
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

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.