Struggling to create a menu list item with 4 items that won't fit on one line? Nested divs didn't work when adding padding. Here is my latest HTML and CSS:
HTML:
<div id="header">
<ul id="menu">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Info</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
CSS:
#menu {
margin: 0;
padding: 0;
}
#menu li {
display: block;
float: left;
margin: 0;
width: 25%;
background-color: gray;
padding: 10px;
}
Here's a link to the jsfiddle for reference: http://jsfiddle.net/GLh92/1/
The menu items don't fit on one line, posing responsiveness concerns. Any suggestions on how to achieve this in a clean manner?