Tagged: x
-
AuthorPosts
-
December 16, 2016 at 8:39 am #1295636
RinardMediaParticipantHello!
My goal was to make the menu drop to the mobile nav sooner so that the desktop nav doesn’t jump to the next line. This is the code I used. I am sure I missed something as during this pixel range, the mobile nav button doesn’t work. I also want the button to align center during this range.
devmmh.rinard.digital
@media (min-width: 980px) and (max-width: 1200px){
.x-navbar .x-btn-navbar {
display: inline-block;
}
}
@media (min-width: 980px) and (max-width: 1200px){
.x-navbar .desktop .x-nav {
display: none;
}
}Thanks for your help!
December 16, 2016 at 8:41 am #1295641
JoaoModeratorThanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
December 16, 2016 at 1:34 pm #1295898
RinardMediaParticipantI did. 🙂
It’s devmmh.rinard.digitalDecember 16, 2016 at 2:12 pm #1295932
JoaoModeratorHi There,
Use the following code instead.
Hope it helps
@media (max-width: 1200px) { a.x-btn-navbar { display: inline-block; float: right; } .x-nav-wrap.mobile.collapse.in { display: block; } .x-nav-wrap.desktop { display: none; } }December 16, 2016 at 2:28 pm #1295949
RinardMediaParticipantMuch better. How can I center the button?
December 16, 2016 at 2:48 pm #1295976
JoaoModeratorHi There,
Update the code to :
@media (max-width: 1200px) { a.x-btn-navbar { display: inline-block; float: none; } .x-nav-wrap.mobile.collapse.in { display: block; } .x-nav-wrap.desktop { display: none; } }Hope it helps
Joao
December 16, 2016 at 2:54 pm #1295982
RinardMediaParticipantThat’s a little bit closer. Still around 1200px the mobile menu button aligns left, once the site drops to about 790px it aligns center.
How can we make it align center the entire range?
Thank you for your help!
December 16, 2016 at 2:57 pm #1295988
JoaoModeratorHi There,
Please add the following code:
.x-navbar-inner { text-align: center; }Thanks
Joao
December 16, 2016 at 3:11 pm #1296002
RinardMediaParticipantThat did it.
Thanks so much!
December 16, 2016 at 3:18 pm #1296010
JoaoModeratorGlad to hear it 🙂
Have a great weekend. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1295636 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
