Tagged: x
-
AuthorPosts
-
February 3, 2017 at 3:59 pm #1357288
rlmills3rdParticipantHello,
In order to have the stacked header style on desktop and the inline header style on mobile I inserted the following custom CSS code:
@media (max-width:979px){ /* Changes top navbar from desktop (Stacked) to mobile (inline) */ .masthead-stacked .x-brand { float: left; } .masthead-stacked .x-btn-navbar { display: inline; position: absolute; right: 0; top: -165px; } .masthead.masthead-stacked .x-navbar-wrap { float:right; margin-right: 20px; margin-top:14px; } }But now my mobile menu is broken and not reaching entirely across the width of the screen. Any ideas on how to fix this?
February 3, 2017 at 4:00 pm #1357289
rlmills3rdParticipantThis reply has been marked as private.February 4, 2017 at 12:28 am #1357669
ChristopherModeratorHi there,
Please update this code :
.masthead-stacked .x-btn-navbar { display: inline; position: absolute; right: 0; top: -165px; }To :
.masthead-stacked .x-btn-navbar { display: inline; }Hope it helps.
February 4, 2017 at 12:13 pm #1357986
rlmills3rdParticipantHey thanks for the reply. Unfortunately, this did not work. The nav button is now below the top bar and the menu is still not full width.
Any other ideas?
February 4, 2017 at 7:49 pm #1358268
RadModeratorHi there,
Would you mind sharing your site’s URL?
Thanks!
February 4, 2017 at 8:45 pm #1358287
rlmills3rdParticipantI’m building on a locally hosted server. Is there any other additional info I might be able to provide you?
February 5, 2017 at 3:17 am #1358436
ChristopherModeratorHi there,
Please upload your site in a staging domain as we need to check your site.
Thanks.
February 6, 2017 at 11:47 am #1359970
rlmills3rdParticipantHi there,
So i did some more research through the forum and was able to come up with a code that works!
See below:
@media (max-width: 979px) { .x-navbar-inner { min-height: 0px; } .masthead-stacked .x-btn-navbar { display: inline; position: absolute; right: 0; top: -55px; } } @media (max-width: 979px){ .masthead-stacked .x-brand { float: left; } .masthead-stacked .x-btn-navbar { margin-top: 0; top: -95px; } }My question now would be what code to add to shrink down the size of the logo?
February 6, 2017 at 11:58 am #1359987
RupokMemberHi there,
Thanks for writing back. You can try adding this :
@media only screen and (max-width: 480px) { .x-brand { max-width: 200px; } }You might need to adjust the max-width and you can change the media query as well.
Cheers!
February 6, 2017 at 12:28 pm #1360015
rlmills3rdParticipantThat worked!
Thanks a million!
February 6, 2017 at 12:33 pm #1360019
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1357288 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
