Tagged: x
-
AuthorPosts
-
September 9, 2016 at 11:12 am #1168179
kisschickenParticipantI’m trying to center my main center navigation links while keeping my logo a fixed distance away on the left and adding a login link a fixed distance away on the right. Is there a way to do this? I’ve attached a screenshot to show you what we’re trying to achieve. Our website is https://pristine.io.
September 9, 2016 at 7:38 pm #1168673
JadeModeratorHi there,
Please add this code in the custom CSS:
.masthead-inline .desktop .x-nav { display: flex; justify-content: center; float: none; }Hope this helps.
September 12, 2016 at 9:53 am #1171438
kisschickenParticipantGreat, that centered the navigation, but is there a way to add a single menu item for “login” separated to the far right?
September 12, 2016 at 10:12 am #1171466
kisschickenParticipantHere is our staging site where I added your code. https://pristineio.staging.wpengine.com/
I gave the login link an id called “offSpring.” I tried floating it right but that didn’t work because it’s connected to the nav. I also tried adding left margin to it but then it made the rest of the navigation off center. Any ideas?
September 12, 2016 at 11:39 am #1171630
ThaiModeratorHi There,
Please add the following CSS:
li#menu-item-8202 { position: absolute; right: 0; }Hope it helps 🙂
September 12, 2016 at 12:00 pm #1171676
kisschickenParticipantGreat, that did it.
September 12, 2016 at 12:25 pm #1171737
ThaiModeratorGlad it worked 🙂
If you need anything else please let us know.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1168179 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
