On our page, when one is scrolling up, there is gap between the sticky menu and the top of the screen. This gap also appears when the menu is pressed to see more options. Do you know how we can fix this issue? Here you can see the code for the sticky menu and its shadow, as it appears on our base.css file.
@PageFly-Victor This addition fixes the problem on the desktop version, but some issues remain on the mobile one. The gap appears when scrolling down on collection and product pages. Here you can see some screenshots of this.
This code solves the problems that were stated above, but creates a new one. On the mobile version, when one is scrolling down on the home page the menu is not fully shown. When scrolling up, we can see the complete menu, but the Google reviews on the bottom left are cut in half. You can see those issues on the screenshots bellow.
This solves the problems that were stated above, but creates a new one. On the mobile version, when scrolling down on the home page the menu is not fully shown. When scrolling up, we can see the complete menu, but the Google reviews on the bottom left are cut in half. You can see those issues on the screenshots bellow.
With this change, when scrolling up, the menu is fully visible but the Google reviews are cut in half. When scrolling down the Google reviews are 100% visible but there is a gap between the menu bar and the top of the screen. You can see those issues on the screenshots bellow
We applied those changes but there were some problems so we restored the code to its previous version. Here you can see a screenshot of the menu bar related css code. Now the shadow of the menu bar is also not visible. We hope this will help you spot the issue.
Here you can see a screenshot of the current version of our css code that is related to the menu bar and its shadow. We hope this will help you spot the issue.
Our goal was to have a menu bar that will remain visible when scrolling down and up in all of our pages both on mobile and desktop versions. We also wanted this menu bar to have a shadow.
This code is the result of multiple attempts to fix issues such as the menu not being at the top of the screen when scrolling up or down, the menu not being 100% visible when scrolling on mobile, the menu only appearing when scrolling up, the menu appearing as desired but resulting in cropping the Google reviews asset on the bottom left. Since now this has become big and confusing, we will highly appreciate it if you can come up with a code alternative to replace all of this with something that will fulfill the goals that were stated above.
@gr_trading thanks for providing a small and understandable alternative. This fixes everything except from the scrolling on the home page on the mobile version. When scrolling down, we see 70% of the menu bar and 100% of Google reviews and when we scroll up, we see 100% of the menu and 70% of Google reviews. You can check this out at: jacqueshermes.com