cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

              <div class="dropMenu">
	<span class="trigger">Options</span>
	<div class="panel">
		<ul class="list">
			<li><a href="">List Item 1</a></li>
			<li><a href="">List Item 2</a></li>
			<li><a href="">List Item 3</a></li>
			<li class="separator"></li>
			<li><a href="">List Item 4</a></li>
			<li><a href="">List Item 5</a></li>
              body {
	font: normal 14px Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, sans-serif;	
.dropMenu {
	display: inline-block;
	position: relative;
	z-index: 1;
	zoom: 1;
 *display: inline;
.dropMenu .trigger {
	cursor: pointer;
	display: block;
	position: relative;
	top: 1px;
	z-index: 3;
	color: #1279A2;
	min-width: 230px;
	padding: 4px 7px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
.dropMenu .panel {
	border: solid 1px #868686;
	position: absolute;
	left: 0;
	min-width: 242px;
	z-index: 2;
	display: none;
	-webkit-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.3);
	box-shadow: 0 2px 2px 0 rgba(0,0,0,0.3);
	-webkit-border-radius: 0 0 3px 3px;
	border-radius: 0 0 3px 3px;
.dropMenu .panel .list {
	background: #fff;
	list-style: none;
	margin: 0;
	padding: 0;
.dropMenu .panel .list li {
	clear: both;
	margin: 1px;
	padding: 1px; /* compensate for hover border */
	border-radius: 3px;
	-moz-border-radius: 3px;
	width: 120px;
.dropMenu .panel .list li:hover {
	border: solid 1px #d2b47a;
	background: #ffecb5;
	padding: 0;
.dropMenu .panel .list li.separator,
.dropMenu .panel .list li:hover.separator {
	width: 232px;
	border: 0 none;
	border-bottom: solid 1px #999;
	height: 1px;
	margin: 0 5px 2px;
	padding: 0;
	background: none;
	float: left; /* this is only here for IE7 */
.dropMenu .panel .list a {
	display: block;
	text-decoration: none;
	padding: 2px 4px;
	color: #1279A2;
/* Open and Hover styles */
.dropMenu.open {
	z-index: 999;
.dropMenu.open .trigger {
	z-index: 1001;
	-webkit-box-shadow: 0 -1px 2px 0 rgba(0,0,0,0.3);
	box-shadow: 0 -1px 2px 0 rgba(0,0,0,0.3);
	-webkit-border-radius: 3px 3px 0 0;
	border-radius: 3px 3px 0 0;
	background: #78A9FF;
	color: #fff;
.dropMenu .trigger:hover,
.dropMenu.open .trigger {
	border: solid 1px #868686;
	padding: 3px 6px;
.dropMenu.open .panel {
	display: block;
	z-index: 1000;
              $(function() {


function initDropDowns(allMenus) {

	allMenus.children(".trigger").on("click", function() {
		var thisTrigger = jQuery(this),
			thisMenu = thisTrigger.parent(),
			thisPanel = thisTrigger.next();

		if (thisMenu.hasClass("open")) {


		} else {			
		return false;
Loading ..................