ReneRabbitt Posted February 5, 2022 Posted February 5, 2022 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
ReneRabbitt Posted February 8, 2022 Author Posted February 8, 2022 Just wanted to try and bump this up as I feel it may be useful to a number of users.
meganheath Posted February 8, 2022 Posted February 8, 2022 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?
ReneRabbitt Posted February 8, 2022 Author Posted February 8, 2022 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? 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; }
meganheath Posted February 10, 2022 Posted February 10, 2022 Hi @ReneRabbitt Oh okay, I understand. Replace your .header-menu style with the following: .header-menu { width: 60vw; margin-left: auto; } Hope that solved it tuanphan 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment