Tagged: x
-
AuthorPosts
-
March 9, 2017 at 3:23 am #1400295
beatricemartiniParticipantHallo,
I’ve added this css to have
-inline navbar
-hide from the home page
– have the navbar content centered on desktop
– have the mobile button in center but…on smaller devices the lines on the botton are on the right… how can I fix it?
body .masthead-inline .desktop .x-nav {
float:none;
}body .x-navbar .desktop .x-nav>li {
display: inline-block;
float: none;
vertical-align: top;
}body .x-nav-wrap.desktop {
text-align: center;
}.x-btn-navbar, .x-btn-navbar.collapsed {
clear: both;
float: none !important;
width: 60px;
text-align: center;
margin: 0 auto;
}.home .x-navbar .x-brand { display: none; }
@media (max-width: 240px) {
.x-btn-navbar .x-icon-bars {
display: block;
margin: 0 auto;
width: 10%;
}
}@media (max-width: 320px) {
.x-btn-navbar .x-icon-bars {
display: block;
margin: 0 auto;
width: 10%;
}
}@media (max-width: 480px) {
.x-btn-navbar .x-icon-bars {
display: block;
margin: 0 auto;
width: 10%;
}
}🙂
March 9, 2017 at 4:00 am #1400328
beatricemartiniParticipantSorry, the thing is a bit different…
At the moment this is what i have:-inline navbar
-hide from the home page
– have the navbar content centered on desktopbody .masthead-inline .desktop .x-nav {
float:none;
}body .x-navbar .desktop .x-nav>li {
display: inline-block;
float: none;
vertical-align: top;
}body .x-nav-wrap.desktop {
text-align: center;
}.home .x-navbar .x-brand { display: none; }
I’d like to have the mobile button in the center only in home page.
I’ve tried this code but it didn’t work (it moves the button in all pages
.home .x-btn-navbar, .x-btn-navbar.collapsed {
clear: both;
float: none !important;
width: 60px;
text-align: center;
margin: 0 auto;March 9, 2017 at 4:07 am #1400336
Rue NelModeratorHello There,
Thanks 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.
Thank you in advance.
March 9, 2017 at 4:08 am #1400337
beatricemartiniParticipantMarch 9, 2017 at 5:17 am #1400399
LelyModeratorHi There,
From your current setup, to center mobile button, please also add this custom CSS:
@media (max-width: 979px){ .masthead-inline .x-btn-navbar { float: none; display: inline-block; } .x-navbar-inner >div { text-align: center; } }Hope this helps.
March 9, 2017 at 5:32 am #1400409
beatricemartiniParticipantA lot better.
Perfect in home page, but in the other pages I’d like to have the mobile button on the right (like the original position).March 9, 2017 at 7:40 am #1400502
JoaoModeratorHi There,
Seems like you already achieved that.
Your button is centered just on your home page while on the others it is not.
Let us know if you need further assitance.
Cheers
March 9, 2017 at 8:32 am #1400559
beatricemartiniParticipantHallo, no… it’s not on the right.
March 9, 2017 at 9:36 am #1400639
JoaoModeratorHi There,
Please update the code provided by Lely from :
@media (max-width: 979px){ .masthead-inline .x-btn-navbar { float: none; display: inline-block; } .x-navbar-inner >div { text-align: center; } }To
@media (max-width: 979px){ .home .masthead-inline .x-btn-navbar { float: none; display: inline-block; } .home .x-navbar-inner >div { text-align: center; } }Hope it helps
Joao
March 9, 2017 at 10:14 am #1400676
beatricemartiniParticipantGreat! Now is perfect!
March 9, 2017 at 12:25 pm #1400811
Nabeel AModeratorGlad we could help 🙂
Cheers!
March 9, 2017 at 12:26 pm #1400814
RupokMemberGlad that you are all set now. Have a nice day!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1400295 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
