Community forum for knowledge and support

Updated 9 months ago

Dropdown list goes behind the next dropdown

At a glance

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.

1
B
D
M
30 comments

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

it’s not haha, you need to apply a z-index on the dropdown element

either just set it to 0 or 1

It's still covered by the next dropdown

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;
}

I guess once you implement this, I would do some extensive testing on as well.

(browsers, devices, etc)

as I am sure a vet like yourself will do but just wanted to call it out anyway! 💪

Hey Matt, thanks for chipping in! But unfortunately, it didn't work... 😞

I havent checked yet but can you make the change and publish if you havent already?

I have published 👍

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;
}

It didn't fix it. I removed finsweet attributes now.

Really appreciate you taking a look!

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.

this was on the published URL

Okay got it to work now by adding it to the global styles! Thanks Matt - really appreciate it.

Also, how wide is your screen? 🤣

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.

That did it! Thanks

Add a reply
Sign up and join the conversation on Slack