* {
border: 0px;
margin: 0px;
padding: 0px;
}
body {
background-color: #FFC;
}
#wrapper {
width:70%;
margin: 0% auto;
}
#header {
background-color: #C1D1FD;
padding: 3%;
}
#nav {
clear:both;
padding: auto;
position:inherit;
background-color:#F0D5AA;
width: auto;
}
#nav ul {
list-style-type:none;
}
#nav a {
display:block;
float:left;
padding:0%;
width:20%;
background-color:#F60;
border-bottom:1px #fff solid;
}
#content {
padding:7%;
margin-left: 20%;
background-color:#fff;
}
#footer {
background-color: #C1D1FD;
padding: 2%;
text-align:center;
}
HTML CODE:
<form id="form1" runat="server">
<div id="wrapper">
<div id="header">
<h1>Welcome to our Website</h1>
<div id="nav">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div> <!-- end nav-->
</div> <!-- end header-->
<div id="content">
<h2>Page Heading</h2>
<p>welcome</p>
<p>welcome</p>
<p>welcome</p>
</div> <!-- end content--><br>
<div id="footer">
<p>Copyright 2010</p>
</div> <!-- end footer-->
</div><!-- end wrapper-->
</form>
Hello, this is my unique CSS and HTML code. I am facing an issue where my navigation bar below the header appears jagged like stairs instead of straight. How can I make my navbar buttons align properly? Any help or advice would be greatly appreciated.