Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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

              
                <div class="sidebar">
  <span>Mixed Martial Arts</span>
<nav class="servicesNav">
				<ul>
					<li><a href="#" class="first">No Gi BJJ</a></li>
					<li><a href="#" class="second">San Shou</a></li>
					<li><a href="#" class="third">Muay Thai</a></li>
				</ul>
			</nav>
</div>
              
            
!

CSS

              
                .sidebar {
  float: left;
  width: 220px;
}


.sidebar span {
	text-align: center;
	color: #fff;
	margin-bottom: 2px;
	display: block;
	padding: 20px;
	font: 18px/1em 'Century Gothic', Arial, sans-serif;
	background: #292929; /* Old browsers */
	background: -moz-linear-gradient(top,  #292929 0%, #414141 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#292929), color-stop(100%,#414141)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #292929 0%,#414141 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #292929 0%,#414141 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #292929 0%,#414141 100%); /* IE10+ */
	background: linear-gradient(to bottom,  #292929 0%,#414141 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#292929', endColorstr='#414141',GradientType=0 ); /* IE6-9 */
	-webkit-box-shadow:  0px 5px 5px -3px rgba(0, 0, 0, 1);
	box-shadow:  0px 5px 5px -3px rgba(0, 0, 0, 1);
	position: relative;
	z-index: 500;
}

.servicesNav {
	width: 216px;
	margin: 0 auto;
}

.servicesNav ul {
	list-style: none;
	position: relative;
  margin: 0;
  padding: 0;
}

.servicesNav li {
	margin: -30px 0 0 0;
}

.servicesNav a {
	position: relative;
	text-align: center;
	text-decoration: none;
	color: #fff;
	display: block;
	padding: 50px 10px 25px;
	font: 16px/1em 'Source Sans Pro', sans-serif;
	border-bottom: 1px solid #000;
	border-bottom-left-radius: 118px 32px;
	border-bottom-right-radius: 118px 32px;
	background: #194b9f; /* Old browsers */
	background: -moz-radial-gradient(center, ellipse cover,  #194b9f 0%, #002c76 55%); /* FF3.6+ */
	background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,#194b9f), color-stop(55%,#002c76)); /* Chrome,Safari4+ */
	background: -webkit-radial-gradient(center, ellipse cover,  #194b9f 0%,#002c76 55%); /* Chrome10+,Safari5.1+ */
	background: -o-radial-gradient(center, ellipse cover,  #194b9f 0%,#002c76 55%); /* Opera 12+ */
	background: -ms-radial-gradient(center, ellipse cover,  #194b9f 0%,#002c76 55%); /* IE10+ */
	background: radial-gradient(ellipse at center,  #194b9f 0%,#002c76 55%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#194b9f', endColorstr='#002c76',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
	-webkit-box-shadow:  0px 5px 5px -3px rgba(0, 0, 0, 1);
	box-shadow:  0px 5px 5px -3px rgba(0, 0, 0, 1);
}

.servicesNav a:hover {
	color: #002c77;
	background: #d0f2ff; /* Old browsers */
	background: -moz-radial-gradient(center, ellipse cover,  #d0f2ff 0%, #60c2e9 55%); /* FF3.6+ */
	background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,#d0f2ff), color-stop(55%,#60c2e9)); /* Chrome,Safari4+ */
	background: -webkit-radial-gradient(center, ellipse cover,  #d0f2ff 0%,#60c2e9 55%); /* Chrome10+,Safari5.1+ */
	background: -o-radial-gradient(center, ellipse cover,  #d0f2ff 0%,#60c2e9 55%); /* Opera 12+ */
	background: -ms-radial-gradient(center, ellipse cover,  #d0f2ff 0%,#60c2e9 55%); /* IE10+ */
	background: radial-gradient(ellipse at center,  #d0f2ff 0%,#60c2e9 55%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d0f2ff', endColorstr='#60c2e9',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}

.servicesNav .first {
	z-index: 300;
}

.servicesNav .second {
	z-index: 200;
}

.servicesNav .third {
	z-index: 100;
}
              
            
!

JS

              
                
              
            
!
999px

Console