Now, add the style to the div class and use the text-align property with center as its value. Share Improve this answer Follow answered Jul 3, 2012 at 3:52 They are most commonly found in navbars, table headers, tabs list, etc. For custom styling, we need to apply dedicated CSS properties. The align-self property is used to override the align-items property. please help. }, .navexample01 a { }. parentOfUl{ text-align:center;} and then ul{ display:inline-block; }, and at last li{ text-align:center; }.