Get started with metisMenu CDN
MIT licensed
MetisMenu is a popular Bootstrap dropdown component for responsive web design.
Tags:- bootstrap
- twbs
- jquery
- menu
- accordion
- toggle
- metis
- metisMenu
Stable version
Copied!
How to start using metisMenu CDN
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdn.cdnhub.io/metisMenu/3.0.7/metisMenu.min.css">
<script src="https://cdn.cdnhub.io/metisMenu/3.0.7/metisMenu.min.js"></script>
<style>
#side-menu {
position: fixed;
top: 60px;
left: 0;
width: 250px;
height: 100%;
background-color: #f5f5f5;
overflow-y: auto;
}
</style>
</head>
<body>
<nav class="navbar navbar-default navbar-static-top" role="banner">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<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" href="#">Metis Menu</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<div id="page-content-wrapper">
<div id="page-content">
<div class="container-fluid">
<h1>Metis Menu Example</h1>
<p>Click the button below to toggle the side navigation.</p>
<button onclick="toggleMenu()" class="btn btn-default">Toggle Side Navigation</button>
</div>
</div>
</div>
<div id="side-menu">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Dashboard <span class="fa arrow"></span></a></li>
<li><a href="#">Users <span class="fa arrow"></span></a>
<ul class="nav navbar-nav navbar-left">
<li><a href="#">Registered Users</a></li>
<li><a href="#">New Users</a></li>
</ul>
</li>
<li><a href="#">Orders <span class="fa arrow"></span></a>
<ul class="nav navbar-nav navbar-left">
<li><a href="#">New Orders</a></li>
<li><a href="#">Shipped Orders</a></li>
<li><a href="#">Completed Orders</a></li>
</ul>
</li>
<li><a href="#">Products <span class="fa arrow"></span></a>
<ul class="nav navbar-nav navbar-left">
<li><a href="#">Add Product</a></li>
<li><a href="#">Manage Products</a></li>
</ul>
</li>
<li><a href="#">Settings <span class="fa arrow"></span></a>
<ul class="nav navbar-nav navbar-left">
<li><a href="#">Profile</a></li>
<li><a href="#">Change Password</a></li>
</ul>
</li>
</ul>
</div>
<script>
function toggleMenu() {
$("#page-content-wrapper").toggleClass("toggled");
$("#side-menu").toggleClass("toggled");
}
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!