<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<nav class="nav">
<ul>
<li>
<a href="#">INTENÇÂO</a>
<ul>
<li>
<a href="#">Lab</a>
<ul>
<li>
<a href="#">Code</a>
<ul>
<li>
<a href="#">Html</a>
<ul>
<li>
<a href="#">Css</a>
<ul>
<li>
<a href="#">Jquery</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>
<a href="#">Graph</a>
<ul>
<li>
<a href="#">Image</a>
<ul>
<li>
<a href="#">Design</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>
<a href="#">Blog</a>
<ul>
<li>
<a href="#">Category</a>
<ul>
<li>
<a href="#">Code</a>
</li>
<li>
<a href="#">Graph</a>
</li>
</ul>
</li>
</ul>
</li>
<li>
<a href="#">About</a>
<ul>
<li>
<a href="#">Vcard</a>
</li>
<li>
<a href="#">Map</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</nav>
</div>
*,
*:before,
*:after {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
* {
margin: 0;
padding: 0;
border: 0 none;
position: relative;
-webkit-transition: all ease .4s;
transition: all ease .4s;
}
html,
body {
width: 100%;
height: 100%;
background: white;
font-family: 'Fjalla One', sans-serif;
font-size: 18px;
}
h1 {
color: #ccc;
text-align: center;
font-size: 1.8rem;
padding-top: 40px;
text-shadow: rgba(0,0,0,0.6) 1px 0, rgba(0,0,0,0.6) 1px 0, rgba(0,0,0,0.6) 0 1px, rgba(0,0,0,0.6) 0 1px;
}
.nav {
margin: 20px auto;
width: 455px;
min-height: auto;
}
.nav ul {
padding-top: 20px;
position: relative;
}
.nav li {
float: left;
text-align: center;
list-style-type: none;
position: relative;
padding: 20px 3px 0 3px;
}
.nav li::before, .nav li::after{
content: '';
position: absolute;
top: 0;
right: 50%;
border-top: 1px solid black;
width: 50%;
height: 20px;
}
.nav li::after{
right: auto;
left: 50%;
border-left: 1px solid black;
}
.nav li:only-child::after, .nav li:only-child::before {
content: '';
display: none;
}
.nav li:only-child{ padding-top: 0;}
.nav li:first-child::before, .nav li:last-child::after{
border: 0 none;
}
.nav li:last-child::before{
border-right: 1px solid black;
border-radius: 0 5px 0 0;
}
.nav li:first-child::after{
border-radius: 5px 0 0 0;
}
.nav ul ul::before{
content: '';
position: absolute; top: 0; left: 50%;
border-left: 1px solid black;
width: 0; height: 20px;
}
.nav li a{
border: 1px solid black;
padding: 5px 10px;
text-decoration: none;
text-transform: uppercase;
color: black;
font-family: arial, verdana, tahoma;
font-size: 11px;
display: inline-block;
border-radius: 5px;
}
.nav li a:hover, .nav li a:hover+ul li a {
background: orange;
color: #000; border:
1px solid #94a0b4;
}
.nav li a:hover+ul li::after,
.nav li a:hover+ul li::before,
.nav li a:hover+ul::before,
.nav li a:hover+ul ul::before{
content: '';
border-color: #94a0b4;
}