As a beginner in Dreamweaver, CSS, and HTML, I may have made some mistakes or overlooked simple solutions. I am currently struggling with how to separate words in my navigation menu, as they always appear centered. Despite trying adjustments like "word-spacing," I have not been able to find a solution.
If anyone could provide suggestions on how to resolve this issue, I would greatly appreciate it.
Thank you.
CSS
.nav {
width: 100%;
height: 40px;
margin-top: 20px;
text-align: center;
}
ul {
margin: 0 auto;
padding: 0 100px;
border: 0;
list-style: none;
}
ul li {
float: left;
text-color: white;
font: Helvetica;
font-size: 100%;
outline: 0 none;
width: 100%;
}
HTML
<div class="menu">
<ul class="nav">
<li id="nav-products"><a href="#">Products</a></li>
<li id="nav-contact"><a href="#">Contact</a></li>
<li id="nav-about"><a href="#">About</a></li>
</ul>
</div>