G43beli G43beli - 1 year ago 80
HTML Question

Horizontally align li in ul on multiple rows

I have a menu with multiple listitems in it:
JS Fiddle

My goal is to align the listitems dinamically, also when it breaks on two or more lines.

So something like the center button in word. When i do text-aling on the

elements it just aligns it in the
itself. when I do
margin: 0 auto
on the
it breaks on like 8 rows.

It should somethink like:

enter image description here

Is there any way to achieve that?

Answer Source

Use Parent Styles as

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download