The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › How to equally divide the width of menu? › Reply To: How to equally divide the width of menu?
Generally there are a few ways.
Use javascript to count the number of li and then give each the same width based on100% / number of li.
li
100% / number of li
Example
Do the above manually…and hardcode the widths yourself.
Give the ul a setting of display:table and the li, display:table-cell
ul
display:table
display:table-cell
Oh…and flexbox.