top centered nav html

Solutions on MaxInterview for top centered nav html by the best coders in the world

showing results for - "top centered nav html"
Amandine
18 Oct 2016
1.nav{
2    border:1px solid #ccc;
3    border-width:1px 0;
4    list-style:none;
5    margin:0;
6    padding:0;
7    text-align:center;
8}
9.nav li{
10    display:inline;
11}
12.nav a{
13    display:inline-block;
14    padding:10px;
15}
16
17<ul class="nav">
18  <li><a href="/">Home</a></li>
19  <li><a href="/about/">About</a></li>
20  <li><a href="/work/">Work</a></li>
21  <li><a href="/clients/">Clients</a></li>
22  <li><a href="/contact/">Contact</a></li>
23</ul>
24