The HTML SELECT format changes depending on the option selected
I have this problem that got me thinking about a hole and I can't figure out what the matter is:
I have a SELECT element , with parameters of different sizes ,
Obviously the default is the size of the longest option.
But when I select one or more options, the selection window changes its size ,
I do not know what can cause this behavior because it only happens in Firefox and in all elements SELECT my application. Is there a CSS property to make this happen?
Do you have any ideas? thanks in advance
source to share
I found what was the
problem.In fact, since this is an old application, I found several reset css applying this rule:
* {
padding: 0;
}
It looks like only firefox doesn't like this, and so applying this to an element does this side effect.
I figured it would give my tags a padding style to override the reset style.
source to share