ul.contact { width: 100%; text-align: center; }. Let's kick off by writing a simple unordered list. Why cant programmers simply use { display:block; }? Perhaps if the list items were text and not images it might not be quite as clean, but I still think it would be alright. . An alternative approach to make a list horizontal could be to use the CSS flexbox model. So, Im trying to align this menu Ive created but theres more space on the left than theres on the right side and I dont understand why this is happening. . So, if anyone has succeeded at this, or fancies playing, let me know :). These methods are as follows: Make a list horizontal using display property Make a list horizontal using CSS Flexbox So without further ado, let's get started. width: 50px; Centering Multiple Horizontal List Items from CSS-Tricks There are series of options for the justify-content tag, they include: You can use this to center align your website menus horizontally. CSS Layout - Horizontal & Vertical Align - W3Schools . Lets say we a the following unordered list: With flexbox, we can have more control over the list items. CSS Horizontal Lists HTML lists, represented by the <ul> tag with <li> tag children, are vertical and bulleted by default. Why are physically impossible and logically impossible concepts considered separate in terms of probability? Attribute Values: left: It sets the text left-align. Implementing horizontal lists is, thanks to the flexibility of CSS, not a tough task. }. Although unordered lists are vertical out-of-the-box, web developers regularly need to implement horizontal lists. With adding javascript libraries to my site (as do most sites), I prefer not to use unnecessary code (in the form of UL, OL, and LIs). Add some width and height to the div element and align text horizontally center also. If you are familiar with Stu Nicholls from CSSPlay, he uses this all the time on his awesome horizontal menus. . You can use the CSS property line-height to align the text center in a div. Making statements based on opinion; back them up with references or personal experience. Its not as semantic as a