CSS Horizontal navigation bar with background color
Why this code gives only a white background:

     ul.nav {
       width: 30%;
       border: 1px solid #999;
       margin: 0px auto;
       background-color: #00ff7f;
     }
     ul.nav li {
       display: inline;
       float: left;
       width: 20%;         
     }
CSS Horizontal navigation bar with background color
===

Why this code gives only a white background:

     ul.nav {
       width: 30%;
       border: 1px solid #999;
       margin: 0px auto;
       background-color: #00ff7f;
     }
     ul.nav li {
       display: inline;
       float: left;
       width: 20%;         
     }