how to align list items horizontally center in css

. Thank you!! Add some width and height to the div element and align text horizontally center also. display: inline-block; Love how CSS-Tricks ranks so well against Stackoverflow lately keep up the good work Chris, Ill buy you a beer 1 day! Personally have not seen the display: table; used before Until then, Ill continue my crusade against navigation lists. }, This seems a very complicated way of going about things. Ive been using the following code as a standard for my nav, and its worked famously:

how to align list items horizontally center in css