Auto sizing mega menu dropdown

Hi all:

I’m trying to get the mega menu dropdown to size itself to the width (more or less) of the text it contains. The only way I’ve found to do it is to use this CSS:

.drop-down-container {
	min-width: auto !important;
	max-width: auto !important;
}

Is there a setting I’m missing that will do this?

Thanks!

Hi there @dougmon

Mega Menu has a minimum width setting for drop downs built-in to the Drop Down child stack, as seen here:

You could easily set a small minimum width, say 100px or so, and then anything above that would make the drop down size up to fit your content.

1 Like

Thanks. That’s much simpler.

1 Like