I created a CSS menu using ul li elements with the goal of making them cover the entire width of the div when placed next to each other. Currently, it appears like this: https://i.sstatic.net/uKbzs.png My aim is to have the green area touch the borders.
Below is the CSS code I used:
#menu {
width: 100%;
height: 1%;
font-size: 16px;
font-family: Tahoma, Geneva, sans-serif;
font-weight: bold;
text-align: center;
}
#menu ul {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}
#menu li {
display: inline;
margin: 0;
padding: 0;
}
#menu a {
text-decoration: none;
height: 100%;
width: 100%;
margin: 1px;
padding-top: 1%;
padding-bottom: 1%;
padding-right: 6%;
padding-left: 6%;
background-color:#04B45F;
color: #F0F0F0;
}
#menu a:hover {
color: #04B45F;
background-color: #FFF;
}