123

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="container">
	<div class="page-title">
		<h1>Vertical Mega Dropdown Menu <br/><small>With Pure CSS3</small></h1>
		<small>By <a href="http://www.devaradise.com/id">Devaradise</a></small>
	</div>
	<div class="mega-menu">
		<ul>
			<li class="menu-item menu-1">
				<a href="#">Multivitamin & Suplemen</a>
				<div class="mega-submenu">
					<h2>Multivitamin & Suplemen</h2>
					<div class="submenu-content">
						<div class="section links">
							<ul>
								<li><a href="#">Lorem Ipsum 1</a></li>
								<li><a href="#">Lorem Ipsum 2</a></li>
								<li><a href="#">Vitamin A</a></li>
								<li><a href="#">Vitamin B</a></li>
								<li><a href="#">Vitamin C</a></li>
								<li><a href="#">Asam Folat</a></li>
								<li><a href="#">Vitamin E</a></li>
							</ul>
						</div>
						<div class="section featured-product">
							<div class="product-detail">
								<div class="badge">Featured</div>
								<img src="https://lab.devaradise.com/codepen-assets/featured-product.jpg" class="thumb"/>
								<div class="product-desc">
									<a class="title" href="#">Wellness Echinaciae + Vit C isi 30</a>
									<div class="price">Rp. 170.000</div>
									<a href="#" class="btn-atc">Add to Cart</a>
								</div>
							</div>
						</div>
						<div class="section promotions">
							<a href="#" class="promo promo 1">
								<img src="https://lab.devaradise.com/codepen-assets/promo-1.jpg" class="thumb"/>
							</a>
							<a href="#" class="promo promo 2">
								<img src="https://lab.devaradise.com/codepen-assets/promo-2.jpg" class="thumb"/>
							</a>
						</div>
					</div>
				</div>	
			</li>
			<li class="menu-item menu-2">
				<a href="#">Jamu & Herbal</a>
				<div class="mega-submenu">
					<h2>Jamu & Herbal</h2>
					<div class="submenu-content">
						<div class="section links">
							<ul>
								<li><a href="#">Lorem Ipsum 1</a></li>
								<li><a href="#">Lorem Ipsum 2</a></li>
								<li><a href="#">Vitamin A</a></li>
								<li><a href="#">Vitamin B</a></li>
								<li><a href="#">Vitamin C</a></li>
								<li><a href="#">Asam Folat</a></li>
								<li><a href="#">Vitamin E</a></li>
							</ul>
						</div>
						<div class="section featured-product">
							<div class="product-detail">
								<div class="badge">Featured</div>
								<img src="https://lab.devaradise.com/codepen-assets/featured-product.jpg" class="thumb"/>
								<div class="product-desc">
									<a class="title" href="#">Wellness Echinaciae + Vit C isi 30</a>
									<div class="price">Rp. 170.000</div>
									<a href="#" class="btn-atc">Add to Cart</a>
								</div>
							</div>
						</div>
						<div class="section promotions">
							<a href="#" class="promo promo 1">
								<img src="https://lab.devaradise.com/codepen-assets/promo-1.jpg" class="thumb"/>
							</a>
							<a href="#" class="promo promo 2">
								<img src="https://lab.devaradise.com/codepen-assets/promo-2.jpg" class="thumb"/>
							</a>
						</div>
					</div>
				</div>
			</li>
			<li class="menu-item menu-3">
				<a href="#">Vaksinasi di Rumah</a>
				<div class="mega-submenu">
					<h2>Vaksinasi di Rumah</h2>
					<div class="submenu-content">
						<div class="section links">
							<ul>
								<li><a href="#">Lorem Ipsum 1</a></li>
								<li><a href="#">Lorem Ipsum 2</a></li>
								<li><a href="#">Vitamin A</a></li>
								<li><a href="#">Vitamin B</a></li>
								<li><a href="#">Vitamin C</a></li>
								<li><a href="#">Asam Folat</a></li>
								<li><a href="#">Vitamin E</a></li>
							</ul>
						</div>
						<div class="section featured-product">
							<div class="product-detail">
								<div class="badge">Featured</div>
								<img src="https://lab.devaradise.com/codepen-assets/featured-product.jpg" class="thumb"/>
								<div class="product-desc">
									<a class="title" href="#">Wellness Echinaciae + Vit C isi 30</a>
									<div class="price">Rp. 170.000</div>
									<a href="#" class="btn-atc">Add to Cart</a>
								</div>
							</div>
						</div>
						<div class="section promotions">
							<a href="#" class="promo promo 1">
								<img src="https://lab.devaradise.com/codepen-assets/promo-1.jpg" class="thumb"/>
							</a>
							<a href="#" class="promo promo 2">
								<img src="https://lab.devaradise.com/codepen-assets/promo-2.jpg" class="thumb"/>
							</a>
						</div>
					</div>
				</div>
			</li>
			<li class="menu-item menu-4">
				<a href="#">Alat Kesehatan</a>
				<div class="mega-submenu">
					<h2>Alat Kesehatan</h2>
					<div class="submenu-content">
						<div class="section links">
							<ul>
								<li><a href="#">Lorem Ipsum 1</a></li>
								<li><a href="#">Lorem Ipsum 2</a></li>
								<li><a href="#">Vitamin A</a></li>
								<li><a href="#">Vitamin B</a></li>
								<li><a href="#">Vitamin C</a></li>
								<li><a href="#">Asam Folat</a></li>
								<li><a href="#">Vitamin E</a></li>
							</ul>
						</div>
						<div class="section featured-product">
							<div class="product-detail">
								<div class="badge">Featured</div>
								<img src="https://lab.devaradise.com/codepen-assets/featured-product.jpg" class="thumb"/>
								<div class="product-desc">
									<a class="title" href="#">Wellness Echinaciae + Vit C isi 30</a>
									<div class="price">Rp. 170.000</div>
									<a href="#" class="btn-atc">Add to Cart</a>
								</div>
							</div>
						</div>
						<div class="section promotions">
							<a href="#" class="promo promo 1">
								<img src="https://lab.devaradise.com/codepen-assets/promo-1.jpg" class="thumb"/>
							</a>
							<a href="#" class="promo promo 2">
								<img src="https://lab.devaradise.com/codepen-assets/promo-2.jpg" class="thumb"/>
							</a>
						</div>
					</div>
				</div>
			</li>
			<li class="menu-item menu-5">
				<a href="#">Obat Asam Urat</a>
				<div class="mega-submenu">
					<h2>Obat Asam Urat</h2>
					<div class="submenu-content">
						<div class="section links">
							<ul>
								<li><a href="#">Lorem Ipsum 1</a></li>
								<li><a href="#">Lorem Ipsum 2</a></li>
								<li><a href="#">Vitamin A</a></li>
								<li><a href="#">Vitamin B</a></li>
								<li><a href="#">Vitamin C</a></li>
								<li><a href="#">Asam Folat</a></li>
								<li><a href="#">Vitamin E</a></li>
							</ul>
						</div>
						<div class="section featured-product">
							<div class="product-detail">
								<div class="badge">Featured</div>
								<img src="https://lab.devaradise.com/codepen-assets/featured-product.jpg" class="thumb"/>
								<div class="product-desc">
									<a class="title" href="#">Wellness Echinaciae + Vit C isi 30</a>
									<div class="price">Rp. 170.000</div>
									<a href="#" class="btn-atc">Add to Cart</a>
								</div>
							</div>
						</div>
						<div class="section promotions">
							<a href="#" class="promo promo 1">
								<img src="https://lab.devaradise.com/codepen-assets/promo-1.jpg" class="thumb"/>
							</a>
							<a href="#" class="promo promo 2">
								<img src="https://lab.devaradise.com/codepen-assets/promo-2.jpg" class="thumb"/>
							</a>
						</div>
					</div>
				</div>
			</li>
			<li class="menu-item menu-6">
				<a href="#">Obat Darah Tinggi</a>
				<div class="mega-submenu">
					<h2>Obat Darah Tinggi</h2>
					<div class="submenu-content">
						<div class="section links">
							<ul>
								<li><a href="#">Lorem Ipsum 1</a></li>
								<li><a href="#">Lorem Ipsum 2</a></li>
								<li><a href="#">Vitamin A</a></li>
								<li><a href="#">Vitamin B</a></li>
								<li><a href="#">Vitamin C</a></li>
								<li><a href="#">Asam Folat</a></li>
								<li><a href="#">Vitamin E</a></li>
							</ul>
						</div>
						<div class="section featured-product">
							<div class="product-detail">
								<div class="badge">Featured</div>
								<img src="https://lab.devaradise.com/codepen-assets/featured-product.jpg" class="thumb"/>
								<div class="product-desc">
									<a class="title" href="#">Wellness Echinaciae + Vit C isi 30</a>
									<div class="price">Rp. 170.000</div>
									<a href="#" class="btn-atc">Add to Cart</a>
								</div>
							</div>
						</div>
						<div class="section promotions">
							<a href="#" class="promo promo 1">
								<img src="https://lab.devaradise.com/codepen-assets/promo-1.jpg" class="thumb"/>
							</a>
							<a href="#" class="promo promo 2">
								<img src="https://lab.devaradise.com/codepen-assets/promo-2.jpg" class="thumb"/>
							</a>
						</div>
					</div>
				</div>
			</li>
			<li class="menu-item menu-7">
				<a href="#">Obat Diabetes</a>
				<div class="mega-submenu">
					<h2>Obat Diabetes</h2>
					<div class="submenu-content">
						<div class="section links">
							<ul>
								<li><a href="#">Lorem Ipsum 1</a></li>
								<li><a href="#">Lorem Ipsum 2</a></li>
								<li><a href="#">Vitamin A</a></li>
								<li><a href="#">Vitamin B</a></li>
								<li><a href="#">Vitamin C</a></li>
								<li><a href="#">Asam Folat</a></li>
								<li><a href="#">Vitamin E</a></li>
							</ul>
						</div>
						<div class="section featured-product">
							<div class="product-detail">
								<div class="badge">Featured</div>
								<img src="https://lab.devaradise.com/codepen-assets/featured-product.jpg" class="thumb"/>
								<div class="product-desc">
									<a class="title" href="#">Wellness Echinaciae + Vit C isi 30</a>
									<div class="price">Rp. 170.000</div>
									<a href="#" class="btn-atc">Add to Cart</a>
								</div>
							</div>
						</div>
						<div class="section promotions">
							<a href="#" class="promo promo 1">
								<img src="https://lab.devaradise.com/codepen-assets/promo-1.jpg" class="thumb"/>
							</a>
							<a href="#" class="promo promo 2">
								<img src="https://lab.devaradise.com/codepen-assets/promo-2.jpg" class="thumb"/>
							</a>
						</div>
					</div>
				</div>
			</li>
			<li class="menu-item menu-8">
				<a href="#">Obat Jantung</a>
				<div class="mega-submenu">
					<h2>Obat Jantung</h2>
					<div class="submenu-content">
						<div class="section links">
							<ul>
								<li><a href="#">Lorem Ipsum 1</a></li>
								<li><a href="#">Lorem Ipsum 2</a></li>
								<li><a href="#">Vitamin A</a></li>
								<li><a href="#">Vitamin B</a></li>
								<li><a href="#">Vitamin C</a></li>
								<li><a href="#">Asam Folat</a></li>
								<li><a href="#">Vitamin E</a></li>
							</ul>
						</div>
						<div class="section featured-product">
							<div class="product-detail">
								<div class="badge">Featured</div>
								<img src="https://lab.devaradise.com/codepen-assets/featured-product.jpg" class="thumb"/>
								<div class="product-desc">
									<a class="title" href="#">Wellness Echinaciae + Vit C isi 30</a>
									<div class="price">Rp. 170.000</div>
									<a href="#" class="btn-atc">Add to Cart</a>
								</div>
							</div>
						</div>
						<div class="section promotions">
							<a href="#" class="promo promo 1">
								<img src="https://lab.devaradise.com/codepen-assets/promo-1.jpg" class="thumb"/>
							</a>
							<a href="#" class="promo promo 2">
								<img src="https://lab.devaradise.com/codepen-assets/promo-2.jpg" class="thumb"/>
							</a>
						</div>
					</div>
				</div>
			</li>
			<li class="menu-item menu-9">
				<a href="#">Obat Kolesterol</a>
				<div class="mega-submenu">
					<h2>Obat Kolesterol</h2>
					<div class="submenu-content">
						<div class="section links">
							<ul>
								<li><a href="#">Lorem Ipsum 1</a></li>
								<li><a href="#">Lorem Ipsum 2</a></li>
								<li><a href="#">Vitamin A</a></li>
								<li><a href="#">Vitamin B</a></li>
								<li><a href="#">Vitamin C</a></li>
								<li><a href="#">Asam Folat</a></li>
								<li><a href="#">Vitamin E</a></li>
							</ul>
						</div>
						<div class="section featured-product">
							<div class="product-detail">
								<div class="badge">Featured</div>
								<img src="https://lab.devaradise.com/codepen-assets/featured-product.jpg" class="thumb"/>
								<div class="product-desc">
									<a class="title" href="#">Wellness Echinaciae + Vit C isi 30</a>
									<div class="price">Rp. 170.000</div>
									<a href="#" class="btn-atc">Add to Cart</a>
								</div>
							</div>
						</div>
						<div class="section promotions">
							<a href="#" class="promo promo 1">
								<img src="https://lab.devaradise.com/codepen-assets/promo-1.jpg" class="thumb"/>
							</a>
							<a href="#" class="promo promo 2">
								<img src="https://lab.devaradise.com/codepen-assets/promo-2.jpg" class="thumb"/>
							</a>
						</div>
					</div>
				</div>
			</li>

		</ul>
	</div>

</div>
            
          
!
            
              /* Css resets */
* {
	padding:0;
	margin:0;
	-webkit-box-sizing:border-box;
	-moz-box-sizing:border-box;
	-box-sizing:border-box;
}
ul {
	list-style: none;
}
img {
	max-width: 100%;
	height: auto;
}
body {
	font-family: 'open sans', sans-serif;
	background-color: #fdfdfd;
}
h1,h2,h2,h3,h4,h5 {
	margin:0.3em 0 0.5em 0;
}
/* End css resets */

/* Css default */
.container {
  width:1200px;
}
.container {
	margin:3vh auto;
	padding:10px;
}
.page-title {
	margin:17px auto;
	text-align: center;
	color:#222;
	font-size: 17px;
}
.page-title h1 {
	font-size:40px;
	line-height: 1;
}
.page-title a{
	color:#ff7777;
	text-decoration: none;
}
.page-title a:hover{
	text-decoration: underline;
	color: #ff3333;
}
/* End css default */
.mega-menu {
	float: left;
	width: 30%;
	position: relative;
	margin:30px auto;
}
.mega-menu >ul {
	position: relative;
	background-color: #e9e9e9;
	display: block;
	position: relative;
}
.mega-menu >ul >li {
	display: block;
	width: 100%;
	height:55px;
}
.mega-menu >ul >li >a {
	padding:17px;
	color:#333;
	text-decoration: none;
	width:100%;
	display: block;
	overflow: hidden;
	position: relative;
	border-bottom:1px solid #ccc;
}
.mega-menu >ul >li:last-child >a {
	border-bottom: 0;
}
.mega-menu >ul >li >a:before, .mega-menu >ul >li >a:after {
	-webkit-transition:all 0.5s;
	-moz-transition:all 0.5s;
	transition:all 0.5s;
}
.mega-menu >ul >li >a:before {
	position: absolute;
	right:0;
	top:0;
	bottom:0;
	width:60px;
	background-color: transparent;
	content: "";
}
.mega-menu >ul >li >a:after {
	position: absolute;
	width: 0;
	height: 0;
	border:4px transparent solid;
	border-left:7px #333 solid;
	right:23px;
	top:25px;
	content: "";
}
.mega-menu >ul >li:hover a:before {
	background-color:#1E9ECF;
}
.mega-menu >ul >li:hover a:after {
	border-left-color:#fff;
}

.mega-menu >ul >li .mega-submenu {
	width:0;
	visibility: hidden;
	position: absolute;
	-webkit-transition:width 0.3s;
	-moz-transition:width 0.3s;
	transition:width 0.3s;
}
.mega-menu >ul >li:hover .mega-submenu {
	top:0;
	right:0;
	left: 100%;
	z-index: 99;
	padding:20px 30px;
	background-color: #fff;
	color:#fff;
	border:3px solid #1E9ECF;
	overflow: hidden;
	visibility: visible;
	width:800px;
	height: 100%;
}
.mega-submenu h2 {
	color: #1E9ECF;
	line-height: 1;
	margin:0;
	padding-bottom: 10px;
	margin-bottom: 20px;
	border-bottom: 1px solid #eee;
}
	.mega-submenu .submenu-content {
		display: block;
		overflow: hidden;
		position: relative;
	}
	.menu-item .submenu-content {
		margin-left: -15px;
		margin-right:-15px;
	}
	.menu-item .section {
		width: 33.333%;
		float: left;
		padding:0 15px;
		position: relative;
	}
	.menu-item .links ul{
		margin:0;
		padding:0;
	}

		.menu-item .links ul li {
			display: block;
			border-bottom: 1px solid #eee;
		}
		.menu-item .links ul li:last-child {
			border-bottom: 0;
		}
		.menu-item .links ul li a{
			color: #555;
			display: block;
			text-decoration: none;
			padding:15px 0;
		}
	.menu-item .featured-product .product-detail{
		border:1px solid #eee;
		text-align: center;
		position: relative;
	}
		.menu-item .featured-product .product-detail .badge {
			background-color: #FE0000;
			color: #fff;
			font-size: 13px;
			padding:5px 15px;
			position: absolute;
			right: 15px;
			top:15px;
		}
		.menu-item .featured-product .product-detail .product-desc {
			padding:10px 20px 30px 20px;
			font-size: 14px;

		}
		.menu-item .featured-product .product-detail .product-desc a{
			text-decoration: none;
		}
		.menu-item .featured-product .product-detail a.title {
			color: #777;
			text-transform: uppercase;
		}
		.menu-item .featured-product .product-detail a.title:hover {
			color:#1E9ECF; 
		}
		.menu-item .featured-product .product-detail .price {
			color:#1E9ECF;
			display: block;
			margin:10px auto;
			font-size: 15px;
			font-weight: 700; 
		}
		.menu-item .featured-product .product-detail .btn-atc {
			color: #fff;
			display: inline-block;
			background-color:#1E9ECF;
			padding:8px 15px;
			-webkit-border-radius:5px;
			-moz-border-radius:5px;
			-o-border-radius:5px;
			border-radius:5px;
		}

	.menu-item .promotions .promo{
		margin-bottom:15px;
		padding:0;
		display: block;
	}
		.menu-item .promotions .promo img{
			border:1px #ddd solid;
			width:100%;
			border-radius: 10px;
		}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console