All things Shopify and commerce
As you can see, once the drawer menu is selected, only a certain section of the page gets covered with a transparent black background. Is there a way i can extend the menu and the black transparent background to the bottom of the screen? If that is not possible, is there a way i can disable scroll when someone clicks on the drawer menu, and the black transparent background covers the entire screen?
Hello @nishant0037
Please provide the URL and password of your website.
Hi,
Need Adjust CSS for the Overlay and update HTML structure (It will be great if you share your store URL)
CSS example
.drawer-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5); /* Black with 50% opacity */
z-index: 999; /* Ensure it’s above other content */
overflow: hidden; /* Prevent scroll */
}
.drawer-menu {
position: fixed;
top: 0;
right: 0;
width: 300px; /* Adjust width as needed */
height: 100%; /* Full height */
background: #fff; /* Background color of the drawer */
z-index: 1000; /* Ensure it’s above the overlay */
/* Add other styling as needed */
}
HTML Structure Example
<div class="drawer-overlay"></div>
<div class="drawer-menu">
<!-- Drawer menu content -->
</div>
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025