How do I align three columns to the center using CSS?

202 views Asked by At

I'm trying to create an organization chart in HTML using CSS, and I'd like to make the spaces between <li> tags thiner.

I'd like to have the margin-left value on the line 89 in CSS at 3%, and have the three columns centered. However, I'm unable to center those columns when I change the margin-left value. Can anyone help me please?

1

There are 1 answers

2
pistevw On BEST ANSWER

Not sure if I understand what you want but have you tried to set width: 33%; and float: left; on the three elements and then margin: 0 auto; on the body?