Center mobile menu (vertical and horizontal)
-
Is it possible to center the mobile menu both vertically and horizontally?
I get mixed results using the mobile version on the computer, see the screenshot. On the iphone it looks kinda centered. -
Hello @Hayo-Gebauer
Can you post a link to your website?
We will then have a look and inspect that!Many wishes!
Audrey
-
@audreybelaud www.hayogebauer.com, thanks!
-
@audreybelaud also, to illustrate what I am talking about, hope this helps
-
Dear @Hayo-Gebauer
I would try something like this:nav.mobile-nav>ul { padding-top: calc(50vh - 150px); }
Best!
Marius
-
@mariusjopen that seems to have done it, thank you!
-
Dear @Hayo-Gebauer
nice!
Best!
Marius
Try this to fix issues before you post:
Use the Search Feature. Maybe there is already a solution to your issue.
1. Update Lay Theme and all Lay Theme Addons
2. Disable all Plugins
3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
4. Now see if your problem solved itself
5. Go here, see if your problem is listed here:
Troubleshooting
When you post:
1. Post a link to where the problem is
2. If the problem is difficult to explain, post screenshots / link to a video to explain it