The styling of list items is controlled by the list-style property. How do I align ul items horizontally in CSS? Thanks. So, if anyone has succeeded at this, or fancies playing, let me know :). @David: I made good experiences with using lists for Accessibility. Optionally, you can left-align the list items for a more tidy view: Tip: Go to our CSS Align Tutorial to learn Its just a point of view. Once you make the list a flex container, all its items will start behaving like flex items and you can apply any flexbox property to them. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. From there, center the bar so that links appear in the middle. The horizontal alignment is a series of horizontal tangents (straight roadway sections), circular curves, and spiral transitions used for the roadways geometry. However I had to do some additional tweaks in order to make it centered in IE7, as I did had similar problem like LukeR. The list items in the menu above are centered by using a div set to display as a table. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. Ive been using the following code as a standard for my nav, and its worked famously: