I currently have a navigation bar implemented with the following code.
* {
margin:0px;
padding:0px;
}
#bs-example-navbar-collapse-1 ul {
list-style:none;
}
#bs-example-navbar-collapse-1 ul li {
width:150px;
line-height:50px;
text-align: center ;
float:left;
color:grey;
font-size:14px;
position:relative;
}
#bs-example-navbar-collapse-1 ul ul {
display:none;
}
#bs-example-navbar-collapse-1 ul li:hover > ul {
display:block;
}
#bs-example-navbar-collapse-1 ul ul ul {
margin-left:150px;
top:0px;
position:absolute;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div id="page-top" class="index">
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand page-scroll" href="#page-top">Back to Top</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><a class="page-scroll" href="#page-top">Home</a></li>
<!-- START OF APPLE SECTION -->
<li> Apple
<ul>
<li><a href="">Apple iphone 7 plus</a></li>
<li><a href="">Apple iphone 7</a></li>
<li><a href="">Apple iphone 6s plus</a></li>
<li><a href="">Apple iphone 6s</a></li>
<li><a href="">Apple iphone 6 plus</a></li>
<li><a href="">Apple iphone 6</a></li>
<li><a href="">Apple iphone SE</a></li>
<li><a href="">Apple iphone 5S</a></li>
<li><a href="">Apple iphone 5C</a></li>
<li><a href="">Apple iphone 5</a></li>
<li><a href="">Apple iphone 4S</a></li>
<li><a href="">Apple iphone 4</a></li>
<li><a href="">Apple iphone 3GS</a></li>
<li><a href="">Apple iphone 3G</a></li>
</ul>
</li>
<!-- START OF SAMSUNG SECTION -->
<li><a class="page-scroll" href="">samsung</a></li>
<!-- START OF HUAWEI SECTION -->
<li><a class="page-scroll" href=".">huawei</a></li>
</ul>
</div>
</div>
</nav>
</div>
However, I wish for it to function similarly to this website:
Upon hovering over 'Apple' in the above website, a drop-down menu with 3 list items appears. How can I replicate this functionality?