Jump to content

Mobile Half Menu, Right Side Justified

Recommended Posts

Site URL: https://www.rabbittdesign.net/

What a challenging thing to lookup, searched for an hour...
I have a half navigation drop down menu on my mobile site and want it to justify to the right side. Can't seem to find the CSS code for this.
If you solve this issue for me I would also love to be taught the correct terminology for everything that I am asking for so that I can re-tag this post and save some unfortunate soul from frustration.
Thank you in advance,
Rene Rabbitt

Link to comment
8 hours ago, meganheath said:

Hi @ReneRabbitt

Did you solve this? It looks like the mobile header menu and menu items are all right aligned. 

If not, can you provide more clarity on what you're trying to solve?

Screenshot 2022-02-08 at 10.28.38.png

It isn't a permanent solve as I just justified by a specific number of pixels. Thank you so much for any help
here is what I have in CSS. I am a novice, the pixel bump was just to test it out really.

 

///////////////////////////////////
/* Half Width Mobile Menu */
.header-display-mobile .header-title-text {
   width: 50vw !important; /*width of the header menu */
  font-size: .30rem !important; /*site-title font-size */
}
.header-menu {
  width: 60vw; left:150px; /*width of the header menu */
}
#page {
  transition: opacity 1s; /* transparency animation */
}
.header--menu-open #page {
  opacity: 30%;  /* makes page transparent when mobile menu is open */
}

.header-menu-nav-folder-content {
  justify-content: flex-start; /* vertical alignment of navigation */
  text-align: right; /* navigation text alignment */
}
.header-menu-nav-folder:not(.header-menu-nav-folder--active) {
  display: none; /* hides non-active folder */
}

.header-menu-cta {
  width: 60vw; /* width of button */
}
.header-menu-cta a {
  min-width: unset !important;
}

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.