Hi, would anyone know why the dropdown list goes behind the next dropdown? I've tried everything with z-index, filters, etc.
Originally i thought it was Finsweets Multi Select attribute solution, when I removed that it started to work on the live site but not Webflow.
you sure you applied a z-index to the dropdown element itself (and not the dropdown_toggle or dropdown_list)?
I've tried applying z-index to everything, it's strange that it works on the front end (until I add finsweet's dropdown select script, I assume this is because it loads the dropdowns after which affect z-index?)
I think it’s still something on your end though.
We have two finsweet dropdown on https://stotlesnew.webflow.io/reports-new/public-sector-cyber-security (password keyfob
) as well, and they work as expected
So strange, read-only link incase anyone is interested:
https://preview.webflow.com/preview/manithawani?utm_medium=preview_link&utm_source=des[…]i&preview=361843a095f6dc3bb4cf5c9942c1dd82&workflow=preview
I see.
I don’t know, it’s weird. Might be a new bug? I can’t remember this happening in the past.
It also happens in my own project now
it looks like its a webflow bug yeah - webflow is adding a z-index: 900; to .w-dropdown
which is the main wrapper for the dropdown. Ultimately there's really no reason for a z-index here at all because anything you do, will just continue to overlap each other because they all share the same classes so we just need to add this CSS to overwrite what Webflow is doing - for what reason, I am not sure.
.w-dropdown { z-index: 0 !important; }
ah okay - so it must have fixed it for me in webflow but not the published site - leading again to finsweet attributes being the issue - taking a look
Can you replace that CSS code I gave you with this one instead? Its very hard to troubleshoot these things when its Finsweet Attributes because you need to publish.
.dropdown_list.w--open { z-index: 1 !important; }
okay - well when I inspect the code - adding the z-index: 1 important; worked - the !important is critical here because it'll override any other property that might be setting it.
Okay got it to work now by adding it to the global styles! Thanks Matt - really appreciate it.
haha apple studio display 🫣 - I have my browser set to 4/5th the full screen with my todo list taking up the last 5th.
I’m struggling with a similar issue with a dropdown. Tried the method mentioned above, but didnt seem to fix it. Any other thoughts on what I’m missing here? https://preview.webflow.com/preview/frank-anderson-md?utm_medium=preview_link&utm_sour[…]&pageId=65e89fff9fa5d735c712af1e&locale=en&workflow=preview
looks like if you reset/remove all other instances of z-index from all the elements where you were trying to troubleshoot - and just add it to the class I'm pointing to here, you should be good.