Forums

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?

#171315
Paulie_D
Member

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.

Example

Do the above manually…and hardcode the widths yourself.

Give the ul a setting of display:table and the li, display:table-cell

Example

Oh…and flexbox.