Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	
	<link rel="stylesheet" href="main.css">
</head>
<body>
	<div class="wrap">
		
		<div class="content">

			<header class="header">


					<div class="header__menu">
						<div class="wrap">
							<div class="header__menu-inner">
								
								<div class="drop-down__mega-menu">
									<div class="drop-down__mega-menu-inner">
										<div class="mega-menu-col">
											<div class="drop-down-title">
												MartPlace Pages
											</div>
											<ul>
												<li><a href="#">Home Page One</a></li>
												<li><a href="#">Home Page Two</a></li>
												<li><a href="#">Home Page Three</a></li>
												<li><a href="#">Products Grid</a></li>
												<li><a href="#">Products List</a></li>
												<li><a href="#">Category Grid Sidebar</a></li>
												<li><a href="#">Category List Sidebar</a></li>
												<li><a href="#">Search Product</a></li>
												<li><a href="#">Single Product V-1</a></li>
												<li><a href="#">Single Product V-2</a></li>
												<li><a href="#">Single Product V-3</a></li>
												<li><a href="#">Single Items Comments</a></li>
												<li><a href="#">Single Items Reviews</a></li>
												<li><a href="#">Single Items Support</a></li>
												<li><a href="#">Single Items FAQs</a></li>
												<li><a href="#">Favorites Items</a></li>
												<li><a href="#">Author Profile</a></li>
												<li><a href="#">Author Items</a></li>
												<li><a href="#">Customer Reviews</a></li>
												<li><a href="#">Followers</a></li>
												<li><a href="#">Following</a></li>
												<li><a href="#">Product View Variations</a></li>
											</ul>
										</div>

										<div class="mega-menu-col mega-menu-col-one">
											<div class="drop-down-title">
												Dashboard
											</div>
											<ul>
												<li><a href="#">Dashboard</a></li>
												<li><a href="#">Account Settings</a></li>
												<li><a href="#">Author Purchases</a></li>
												<li><a href="#">Items Rating</a></li>
												<li><a href="#">Add Credits</a></li>
												<li><a href="#">Statements</a></li>
												<li><a href="#">Invoice</a></li>
												<li><a href="#">Upload Item</a></li>
												<li><a href="#">Edit Items</a></li>
												<li><a href="#">Withdrawals</a></li>
												<li><a href="#">Add Payment Method</a></li>
												
											</ul>
										</div>

										<div class="mega-menu-col">
											<div class="drop-down-title">
												Others Pages
											</div>
											<ul>
												<li><a href="#">Notifications</a></li>
												<li><a href="#">Message Inbox</a></li>
												<li><a href="#">Message Compose</a></li>
												<li><a href="#">Shopping Cart</a></li>
												<li><a href="#">Checkout</a></li>
												<li><a href="#">Login</a></li>
												<li><a href="#">Register</a></li>
												<li><a href="#">Recovery Password</a></li>
												<li><a href="#">Support Forum</a></li>
												<li><a href="#">Forum Details</a></li>
												<li><a href="#">How It Works</a></li>
												<li><a href="#">About Us</a></li>
												<li><a href="#">Pricing Plan</a></li>
												<li><a href="#">Testimonials</a></li>
												<li><a href="#">FAQs</a></li>
												<li><a href="#">FAQs Details</a></li>
												<li><a href="#">Affiliates</a></li>
												<li><a href="#">Terms & Conditions</a></li>
												<li><a href="#">Blog V-1</a></li>
												<li><a href="#">Blog V-2</a></li>
												<li><a href="#">Blog Details</a></li>
												<li><a href="#">Contact Us</a></li>					
												
											</ul>
										</div>
									</div>	

								</div>
								<nav class="menu__header">
									<ul class="menu__header-list">
										<li class="drop__down-menu">
											<a href="#" class="drop__down-link">Home</a>
											<ul class="drop__down-list">
												<li><a href="#">Home One Multi User</a></li>
												<li><a href="#">Home Two Single User</a></li>
												<li><a href="#">Home Three Product</a></li>
											</ul>
										</li>

										<li class="drop__down-menu">
											<a href="#" class="drop__down-link">All products</a>
											<ul class="drop__down-list">
												<li><a href="#">Recent Items</a></li>
												<li><a href="#">Popular Items</a></li>
	
											</ul>
										</li>

										<li class="drop__down-menu">
											<a href="#" class="drop__down-link">Wordpress</a>
											<ul class="drop__down-list">
												<li><a href="#">Popular Items</a></li>
												<li><a href="#">Admin Templates</a></li>
												<li><a href="#">Blog / Magazine / News</a></li>
		
											</ul>
										</li>

										<li><a href="#">Festures</a></li>

										<li class="drop__down-menu">
											<a class="drop__down-link" href="#">Pages</a>
										
										</li>

									</ul>
								</nav>
								<form  class="top-search-form">
									<input type="text" placeholder="Search product here...">
									<button class="search">
										<img src="images/icons/search.png" alt="">
									</button>
								</form>
							</div>
						</div>
					</div>
				
			</header>


		</div>
	</div>	

    
    <!--Plugin JavaScript file-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
	<script src="main.js"></script>
</body>
</html>
              
            
!

CSS

              
                .header__menu-inner {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 80px;
}

.menu__header {
	max-width: 750px;
	li {
		display: inline-block;
	}

	li + li {
		margin-left: 30px;
	}
	a {
		font-size: 15px;
		line-height: 42px;
		text-transform: uppercase;
		font-weight: 500;
		color: #333;
		&:hover {
			color: blue;
		}
	}
}

.drop__down-menu {
	position: relative;
	padding-bottom: 20px;
	margin-top: 20px;
	
}

.drop__down-list {
	display: none;
	position: absolute;
	top: 61px;
	left: 0;
	width: 270px;
	background-color: #fff;
	padding: 20px;
	border-top: 1px solid blue;
	color: #fff;
	font-size: 15px;
	box-shadow: 0px 5px 40px 0px rgba(82, 85, 90, 0.2);	
	border-top: 1px solid blue;
	z-index: 2;
	li {
		width: 100%;

		&+li {
			margin-left: 0;
		}
		a{	
			display: block;
			line-height: 44px;
			padding: 0 10px;
			text-transform: capitalize;
			
			&:hover {
				color: #fff;
				background-color: blue;
			}
		}
	}
}

.drop__down-menu:hover .drop__down-list{
	display: block;
}

// .header__menu-inner {
// 	position: relative;
// }

.drop-down__mega-menu {
	display: none;
	position: absolute;
	top: 81px;
	left: 0;
	z-index: 1;
	width: 100%;
	max-height: 610px;
	box-shadow: 0px 5px 40px 0px rgba(82, 85, 90, 0.2);
	border-top: 1px solid blue;
	&-inner {
		padding: 20px;
		background-color: #fff;
		font-size: 15px;
		line-height: 42px;
		color: #54667a;
		display: flex;
	}
}

.mega-menu-col {
	max-width: 435px;
	width: 100%;
	&+.mega-menu-col {
		margin-left: 40px;
	}
	ul {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		flex-flow: wrap;
	}
	li{
		width: 180px;
		a {
			color: #333;
			font-weight: 500;
			width: 100%;
			padding: 0 5px;
			&:hover {
				color: #fff;
				background-color: blue;
			}
		}
	}
}

.drop-down-title {
	color: #000;
	font-weight: 500;
	border-bottom: 1px solid #e8ebf0;
	font-size: 16px;
	margin-bottom: 18px;
}

.mega-menu-col-one {
	max-width: 180px;
	width: 100%;
}

@media (max-width: 520px) {

			/*START MENU*/
	.header {
		.wrap {
			padding: 0 10px;
		}
	}

	.header__top-logo {
		max-width: 130px;
	}
	.header__user-nav+.header__user-nav {
		margin-left: 5px;
	}

	.user {
		font-size: 13px;
		margin-left: 10px;
		&__image {
			width: 40px;
			height: 40px;
			margin-right: 5px;
		}
		&__name {
			font-size: 14px;
		}
	}

	.top-search-form {
		display: none;
	}

	.menu__header {
		margin-left: auto;
		a {
			line-height: 30px;
		}
	}

	.basket__menu {
	    width: 295px;
	    right: 10px;
	}

	.basket__item {
		padding-bottom: 10px;
		&-title {
			font-size: 14px;
			line-height: 18px;
		}
	}

	.basket__item+.basket__item {
		padding-top: 10px;
	}

	.basket__item-price-inner {
		padding: 10px 0px;
	}

	.basket__item-btn a {
		font-size: 14px;
		height: 40px;
		line-height: 40px;
	}

	.menu__header-btn {
		width: 30px;
		span {
			height: 4px;
			&+span {
				margin-top: 3px;
			}
		}
	}

	.user__menu {
		padding: 10px;
	}

	.user__menu li a  {
		font-size: 14px;
		line-height: 35px;
	}

	.menu__header-list {
		left: 0;
		li {
			display: block;
			border-bottom: 1px solid #0c0c0c;
			a {
				display: block;
			}
		}
		top: 56px;
	}
	.menu__header li+li {
		margin-left: 0;
	}

	.drop__down-list {
		width: 100%;
	}

	.header__menu-inner {
		min-height: 55px;
	}

	.drop__down-list {
		padding: 0 12px;
		top: 40px;
	}

	.drop__down-menu.link__mega-menu {
		display: none;
	}
}
              
            
!

JS

              
                $(function(){
$('.menu__header-btn').on('click', function(){
  $('.menu__header-list').slideToggle();
});

$('.drop__down-menu').on('click', function(){
  $(this).children('.drop__down-list').slideToggle();
});
  
    });
              
            
!
999px

Console