100vh carousel on desktop vs. on mobile
-
Hi
On the homepage I use a 100vh carousel and a light grey, transparent menu bar which blurs everything in the background.
With the height being 100vh the carousel on desktop is being shown below the menu bar and there it's slightly blurred. This is how I want it to be.
On mobile however, the same carousel with a height of also 100vh starts only after the menu bar.How can I have the carousel full screen on mobile and the menu bar being displayed on top of that?
Best, Raphael
-
hey there!
lay options → custom css & html
custom css for mobile:
body{ padding-top:0!important; }
-
@arminunruh Thanks for your reply, Armin. But that was of course the first thing I tried myself.
The top part looks now exactly how I want. But, in Chrome (iPhone) the carousel is with that code 50px (Menu bar height) too short in height. Seems like on mobile Lay Theme subtracts the Menu bar height before displaying the carousel with 100vh. Only on desktop, 100vh is really covering 100%.
Btw. in Safari there is the additional problem that 100vh is not covering 100% of the viewport and there is always a whitespace blow the carousel.
Best, Raphael
-
if you hide the whole mobile navbar in customizer this should work
sry i wont code it to work for your case since its a really unique case
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it