Responsive ecommerce product page (Next/Tailwind)
Design comparison
Solution retrospective
Hi ! I have some issues with the modal on the desktop view. If someone has an idea to fix it I would love some help 😁
Community feedback
- @wealthygiftdevPosted over 1 year ago
I just Concluded this same project, using Basic CSS JS and HTML, did u give the modal z-index> 500? u can check my code out
1@anna-dominguezPosted over 1 year ago@wealthygiftdev Yes, I thought giving the modal z-index 50 and the all page and components z-index 0 would do the trick but it doesn't 🥲
0@immdipuPosted over 1 year ago@Vesta-nna just give z-index 1 to the div below main tag. but there is still one issue the modal is overflowing and there is no close button to close the modal.
0@wealthygiftdevPosted over 1 year ago@Vesta-nna when u give it z-index, write "!important" beside it......make sure the z-index is greater than all other z-index in your code.
something like this
z-index: 500 !important;
try this i hope it works for the situation. if else we might have to try something more deep. That's the way i fixed mine. and truly as @immdipu said your modal is overflowing . we'd also need to fix that too.But first we have to make sure the modal is well sitted above the main page.
thanks
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord