Guest Posted December 2, 2019 Posted December 2, 2019 Hi, I am making a mobile navigation for my website to be used on tablet and desktop too. However, the navigation links will not center no matter what I do. if I change them they change on another thing. Here is my code. Please help 😞  .is-mobile-overlay-active .Mobile-overlay {  @media screen and (min-width: 768px)  {   width:30% }  @media screen and (max-width: 768px) {   width:50%  }  @media screen and (max-width: 640px) {   width:80%  } } @media only screen and (max-width: 768px) { .Mobile-overlay-nav-item, .Mobile-overlay-folder-item {  text-align: center ;  margin-left: 65px;  padding-bottom: 50px} .Mobile-overlay-menu {  width: 100%; z-index: 1} }  @media only screen and (max-width: 640px) { .Mobile-overlay-nav-item, .Mobile-overlay-folder-item {  text-align: center;  margin-left: 45px !important;   padding-top: 0px;   padding-bottom: 30px} .Mobile-overlay-menu {  width: 100%; z-index: 1;} } media only screen and (min-width: 768px)  {.Mobile-overlay-nav-item, .Mobile-overlay-folder-item {  text-align: center;  margin-left: 230 !important;   padding-top: 0px;   padding-bottom: 30px} .Mobile-overlay-menu {  width: 100%; z-index: 1;} }
tuanphan Posted December 5, 2019 Posted December 5, 2019 Can you share link to your site? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
artpimpress Posted February 3, 2020 Posted February 3, 2020 I am using this code to center my navigation, still searching for the solution to center vertically but I added margin which makes the nav show below the header/logo. Maybe this will solve at least part of your issue. .Mobile-overlay-nav-item, .Mobile-overlay-folder-item { text-align: center; margin-top: 30px !important;; }Â .Mobile-overlay-menu {width: 100%; z-index: 1;}
Recommended Posts
Archived
This topic is now archived and is closed to further replies.