content logo

:

Bootstrap Hoverable Menu with Submenu

Menu is one of the most important elements of any website and if you own a page, it is the best idea to use submenus. In this post, you can see the Bootstrap Hoverable Menu with Submenus with a different theme. By using this Bootstrap Hoverable Header, you can organize the content of your website and sort the data into different sections and parts. As a result, you can easily move to another page by clicking on a specific header. So, use this HTML Menu and Submenu Code on your page and attract new visitors to your website.

There is a preview of this Pure CSS Submenu Code below. As you see, this code is totally simple and it has a header with blue color. The main page is white and pure; So, you can add your needed information to this page easily. The header of this code is separated into several sections. These headers are white and show different parts. Some of these sections have a slider with an arrow icon. After putting the mouse on this icon, you can see other parts of this header. If you move the mouse on this part of Menu Code with Logo, the arrow turns upside with an effect.

#

Bootstrap Hoverable Header

#

HTML Menu and Submenu Code

#

Menu Code with Logo

#

Pure CSS Submenu Code

<!-- This script got from frontendfreecode.com -->
<nav>
    <div class="navbar">
        <div class="logo"><a href="">Logo</a></div>
        <div class="nav-links">
            <ul class="links">
                <li><a href="">Home</a></li>
                <li>
                    <a href="">html</a><i class="fas fa-angle-down arrow htmlcss-arrow"></i>
                    <ul class="htmlcss-sub-menu sub-menu">
                        <li><a href="#">webdesign</a></li>
                        <li><a href="#">webdesign</a></li>
                        <li class="more">
                            <a href="#">more</a>
                            <i class="fas fa-angle-right arrow more-arrow"></i>
                            <ul class="more-sub-menu sub-menu">
                                <li>
                                    <a href="#">
                                        <div class="card" style="width: 18rem;margin-top: 5px;">
                                            <img src="http://frontendfreecode.com/img/book.jpg" alt="error">
                                            <p style="color: black;">click the below link for course details</p>
                                            <button style="border: 1px solid;background-color: green;margin:;border-radius: 5px;">clickme</button>
                                        </div>
                                    </a>
                                </li>
                                <li>
                                    <a href="#">
                                        <div class="card" style="width: 18rem;margin-top: 5px;">
                                            <img src="http://frontendfreecode.com/img/book.jpg" class="card-img-top" style="width: 100%;" alt="error">
                                            <p style="color: black;">click the below link for course details</p>
                                            <button style="border: 1px solid;background-color: green;margin:;border-radius: 5px;">clickme</button>
                                        </div>
                                    </a>
                                </li>
                                <li>
                                    <a href="#">
                                        <div class="card" style="width: 18rem;margin-top: 5px;">
                                            <img src="http://frontendfreecode.com/img/book.jpg" class="card-img-top" style="width: 100%;" alt="error">
                                            <p style="color: black;">click the below link for course details</p>
                                            <button style="border: 1px solid;background-color: green;margin:;border-radius: 5px;">clickme</button>
                                        </div>
                                    </a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </li>
                <li>
                    <a href="">javascript</a><i class="fas fa-angle-down arrow js-arrow"></i>
                    <ul class="js-sub-menu sub-menu">
                        <li><a href="#">webdesign</a></li>
                        <li><a href="#">webdesign</a></li>
                        <li><a href="#">webdesign</a></li>
                    </ul>
                </li>
                <li><a href="">about</a></li>
                <li><a href="">contact</a></li>
            </ul>
        </div>
    </div>
</nav><a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: sans-serif;
}
nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 70px;
	background: #3e8da8;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
nav .navbar {
	height: 100%;
	max-width: 1250px;
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 50px;
}
nav .navbar .logo a {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
nav .navbar .nav-links {
	height: 100%;
	line-height: 30px;
}
nav .navbar .nav-links .links {
	display: flex;
}
nav .navbar .nav-links .links li {
	position: relative;
	display: flex;
	align-items: center;
	padding: 0 24px;
	list-style: none;
}
nav .navbar .nav-links .links li a {
	height: 100%;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}
nav .navbar .nav-links .links li .arrow {
	height: 100%;
	width: 22px;
	text-align: center;
	color: #fff;
	line-height: 35px;
	transition: all 0.3s ease;
}
nav .navbar .nav-links .links li:hover .htmlcss-arrow, nav .navbar .nav-links .links li:hover .js-arrow {
	transform: rotate(180deg);
}
nav .navbar .nav-links .links .sub-menu {
	position: absolute;
	top: 70px;
	left: 0;
	background: #3e8da8;
	line-height: 40px;
	border-radius: 0 0 4px 4px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	display: none;
}
nav .navbar .nav-links .links .sub-menu li {
	padding: 0 22px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
nav .navbar .nav-links .links .sub-menu li a {
	font-size: 15px;
	font: 500;
}
nav .navbar .nav-links .links .sub-menu li .more-arrow {
	line-height: 40px;
}
nav .navbar .nav-links .links li:hover .htmlcss-sub-menu, nav .navbar .nav-links .links li:hover .js-sub-menu {
	display: block;
}
.navbar .nav-links .links .more:hover .more-sub-menu {
	display: block;
}
.navbar .nav-links .links .more .more-sub-menu {
	position: absolute;
	top: 0;
	left: 100%;
	border-radius: 0 4px 4px 4px;
	z-index: 1;
	display: none;
	height: 500px;
	overflow: auto;
	text-align: justify;
}
<script src="https://kit.fontawesome.com/696028188e.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<script src="https://kit.fontawesome.com/696028188e.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script>
<style>
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: sans-serif;
}
nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 70px;
	background: #3e8da8;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
nav .navbar {
	height: 100%;
	max-width: 1250px;
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 50px;
}
nav .navbar .logo a {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
nav .navbar .nav-links {
	height: 100%;
	line-height: 30px;
}
nav .navbar .nav-links .links {
	display: flex;
}
nav .navbar .nav-links .links li {
	position: relative;
	display: flex;
	align-items: center;
	padding: 0 24px;
	list-style: none;
}
nav .navbar .nav-links .links li a {
	height: 100%;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}
nav .navbar .nav-links .links li .arrow {
	height: 100%;
	width: 22px;
	text-align: center;
	color: #fff;
	line-height: 35px;
	transition: all 0.3s ease;
}
nav .navbar .nav-links .links li:hover .htmlcss-arrow, nav .navbar .nav-links .links li:hover .js-arrow {
	transform: rotate(180deg);
}
nav .navbar .nav-links .links .sub-menu {
	position: absolute;
	top: 70px;
	left: 0;
	background: #3e8da8;
	line-height: 40px;
	border-radius: 0 0 4px 4px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	display: none;
}
nav .navbar .nav-links .links .sub-menu li {
	padding: 0 22px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
nav .navbar .nav-links .links .sub-menu li a {
	font-size: 15px;
	font: 500;
}
nav .navbar .nav-links .links .sub-menu li .more-arrow {
	line-height: 40px;
}
nav .navbar .nav-links .links li:hover .htmlcss-sub-menu, nav .navbar .nav-links .links li:hover .js-sub-menu {
	display: block;
}
.navbar .nav-links .links .more:hover .more-sub-menu {
	display: block;
}
.navbar .nav-links .links .more .more-sub-menu {
	position: absolute;
	top: 0;
	left: 100%;
	border-radius: 0 4px 4px 4px;
	z-index: 1;
	display: none;
	height: 500px;
	overflow: auto;
	text-align: justify;
}
</style>

</head>
<body>
<nav>
    <div class="navbar">
        <div class="logo"><a href="">Logo</a></div>
        <div class="nav-links">
            <ul class="links">
                <li><a href="">Home</a></li>
                <li>
                    <a href="">html</a><i class="fas fa-angle-down arrow htmlcss-arrow"></i>
                    <ul class="htmlcss-sub-menu sub-menu">
                        <li><a href="#">webdesign</a></li>
                        <li><a href="#">webdesign</a></li>
                        <li class="more">
                            <a href="#">more</a>
                            <i class="fas fa-angle-right arrow more-arrow"></i>
                            <ul class="more-sub-menu sub-menu">
                                <li>
                                    <a href="#">
                                        <div class="card" style="width: 18rem;margin-top: 5px;">
                                            <img src="http://frontendfreecode.com/img/book.jpg" alt="error">
                                            <p style="color: black;">click the below link for course details</p>
                                            <button style="border: 1px solid;background-color: green;margin:;border-radius: 5px;">clickme</button>
                                        </div>
                                    </a>
                                </li>
                                <li>
                                    <a href="#">
                                        <div class="card" style="width: 18rem;margin-top: 5px;">
                                            <img src="http://frontendfreecode.com/img/book.jpg" class="card-img-top" style="width: 100%;" alt="error">
                                            <p style="color: black;">click the below link for course details</p>
                                            <button style="border: 1px solid;background-color: green;margin:;border-radius: 5px;">clickme</button>
                                        </div>
                                    </a>
                                </li>
                                <li>
                                    <a href="#">
                                        <div class="card" style="width: 18rem;margin-top: 5px;">
                                            <img src="http://frontendfreecode.com/img/book.jpg" class="card-img-top" style="width: 100%;" alt="error">
                                            <p style="color: black;">click the below link for course details</p>
                                            <button style="border: 1px solid;background-color: green;margin:;border-radius: 5px;">clickme</button>
                                        </div>
                                    </a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </li>
                <li>
                    <a href="">javascript</a><i class="fas fa-angle-down arrow js-arrow"></i>
                    <ul class="js-sub-menu sub-menu">
                        <li><a href="#">webdesign</a></li>
                        <li><a href="#">webdesign</a></li>
                        <li><a href="#">webdesign</a></li>
                    </ul>
                </li>
                <li><a href="">about</a></li>
                <li><a href="">contact</a></li>
            </ul>
        </div>
    </div>
</nav><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Free Frontend</a></div>

</body>
</html>
Preview