Currently, I am attempting to center the menu bar and ensure that it perfectly fits the text. For reference, here is the website that I'm currently working on:
I have already discovered a way to center the menu items as shown below:
.menu {
text-align:center
}
.menu li {
display:inline-block;
float:none;
margin-left: -5px;
}
.menu li li {
display:block;
text-align:left
}
However, I am facing an issue trying to adjust the menu bar width to match the menu items. I have determined that it should be 445px long, but when I attempt to make the change within this code snippet:
#container {
margin: 0 auto;
max-width: 960px;
changing it to 445px impacts the entire page rather than just the menu bar specifically. Do any of you have suggestions on how to resolve this?