Align nav to center
by braganca
HTML
<html>
<head>
<style>
.wrapper {
width: 100vw;
display: flex;
justify-content: center;
}
ul {
text-align: center;
list-style-type: none;
display: inline-block;
margin: 0;
padding: 0;
overflow: hidden;
background-color: rgb(111, 145, 156);
}
ul > .nav {
width: 100vw;
}
li {
float: left;
display:inline;
border-right:1px solid rgb(79, 100, 107);
}
li:last-child {
border-right: none;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover {
background-color: rgb(96, 35, 29);
}
li a:hover:not(.active) {
background-color: rgb(79, 100, 107);
}
.active {
background-color: rgb(127, 45, 37);
}
</style>
</head>
<body>
<div class="wrapper">
<ul class="nav">
<li><a href="{% url 'index' %}">Home</a></li>
<li><a class="active" href="{% url 'aboutus' %}">About us!</a></li>
<li><a href="{% url 'orderentry' %}">Order here!</a></li>
<li><a href="{% url 'shipmenttracking' %}">Track your shipment</a></li>
<li><a href="{% url 'ticketmanage' %}">Having trouble? Click here to get help!</a></li>
</ul>
</div>
</body>
</html>