Click here to Skip to main content
15,887,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I have a little but annoying issue and I can't figure out what is happening.

Go to this snippet and try it in Edge, Chrome, Firefox and IE. When you put your mouse over each dropdown the items are displayed correctly, but if you put your mouse over an item, depending on the browser, a 1px margin is shown. Only Firefox is capable to render it correctly in both dropdowns.

Regards,
Miguel.

What I have tried:

I tried to use div instead of ul/li and flexbox displaying but the issue persists.
Posted
Updated 22-Feb-18 4:33am
Comments
Richard Deeming 23-Feb-18 10:41am    
Looks OK to me in Firefox, Chrome, Edge and IE11.

1 solution

Hi,May be height changes will affect.This code may help you
div.oddity-dropdownlist span{
  min-height:19px;
}
div.oddity-dropdownlist button{
  min-height:37px;
  vertical-align:top;
}


or
div.oddity-dropdownlist span{
  height:19px;
}
div.oddity-dropdownlist button{
  height:37px;
  vertical-align:top;
}
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900