Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My dropdown menu background takes size of the items, hence unequal...what can be done to make them equal??
Posted
Comments
Karthik_Mahalingam 25-Jan-14 13:29pm    
can u post the code

1 solution

There could be a number of ways to solve this problem
1) Set the minwidth of the li control.
2) Write some JQuery to pad each li to the max length.
3) Use a table-cell.
E.g.
CSS
li {
  display: table-cell;
}
 
Share this answer
 

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