Hello! I am in the process of creating my first website, and it's going to be a D&D character randomizer. Currently, I'm working on the Nav-bar section and I have four bars that I want to fit across the screen equally, regardless of the screen size. If anyone has expertise in this area, I would greatly appreciate your advice on what modifications should be made to my existing code. I've shared all the CSS and HTML required to replicate the issue. Thank you in advance!
/* Menu CSS */
#Menu {
font-size: 25px; /* Font size set to 25 px */
}
/* Background CSS for the Menu */
#Menu ul {
list-style-type: none; /* Bullets removed */
overflow: hidden; /* Scrollbar disabled */
background-color: rgb(77, 39, 21); /* Menu background color */
margin-bottom: 0px; /* 0 pixels bottom margin */
margin-top: 0px; /* 0 pixels top margin */
padding: 0;
}
/* Edges of the Menu CSS*/
#Menu li {
float: left; /* Floats Menu items to the Left */
border-right: 1px solid rgb(104, 99, 99); /* 1px left border line separating blocks */
border-left: 1px solid rgb(104, 99, 99); /* 1px right border line separating blocks */
}
/* Tab styling for Menu CSS */
#Menu li a {
display: block; /* Block level display */
color: rgb(187, 180, 180); /* Text color */
text-align: center; /* Aligns text in the middle of the block */
padding: 16px 177px; /* Padding between blocks */
text-decoration: none; /* No underline for links */
}
<link rel="stylesheet" type="text/css" href= "StylesheetQ.css">
<div id="Menu">
<ul>
<li><a class="active" href="Main Page.html">Home</li></a></li>
<li><a href="About.html">About</li></a></li>
<li><a href="Contacts.html">Contacts</li></a></li>
<li><a href="Testimonials.html">Testimonials</li></a></li>
</ul>
</div>