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.

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

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.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:

Screenshot

Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

              
                	<div class="container">

		<h1>Animated Navigation Examples</h1>
		
		<h2>Not Animated</h2>
        <nav class="nav nav1">
            <ul>
                <li>
                <a href="#">Nav Item</a>
                    <ul>
                        <li><a href="#">Subnav Item</a></li>
                        <li><a href="#">Subnav Item</a></li>
                        <li><a href="#">Subnav Item</a></li>
                    </ul>
                </li>
                <li>
                    <a href="#">Nav Item</a>
                    <ul>
                        <li><a href="#">Subnav Item</a></li>
                        <li><a href="#">Subnav Item</a></li>
                        <li><a href="#">Subnav Item</a></li>
                    </ul>
                </li>
                <li>
                    <a href="#">Nav Item</a>
                    <ul>
                        <li><a href="#">Subnav Item</a></li>
                        <li><a href="#">Subnav Item</a></li>
                        <li><a href="#">Subnav Item</a></li>
                    </ul>
                </li>
                <li>
                    <a href="#">Nav Item</a>
                    <ul>
                        <li><a href="#">Subnav Item</a></li>
                        <li><a href="#">Subnav Item</a></li>
                        <li><a href="#">Subnav Item</a></li>
                    </ul>
                </li>
                <li>
                    <a href="#">Nav Item</a>
                    <ul>
                        <li><a href="#">Subnav Item</a></li>
                        <li><a href="#">Subnav Item</a></li>
                        <li><a href="#">Subnav Item</a></li>
                    </ul>
                </li>
            </ul>
        </nav>
		
		<h2>Fade In and Out</h2>
		<nav class="nav nav2">
			<ul>
				<li>
					<a href="#">Nav Item</a>
					<ul>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
					</ul>
				</li>
				<li>
					<a href="#">Nav Item</a>
					<ul>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
					</ul>
				</li>
				<li>
					<a href="#">Nav Item</a>
					<ul>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
					</ul>
				</li>
				<li>
					<a href="#">Nav Item</a>
					<ul>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
					</ul>
				</li>
				<li>
					<a href="#">Nav Item</a>
					<ul>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
					</ul>
				</li>
			</ul>
		</nav>
		
		<h2>Slide Down #1</h2>
		<nav class="nav nav3">
			<ul>
				<li>
					<a href="#">Nav Item</a>
					<ul>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
					</ul>
				</li>
				<li>
					<a href="#">Nav Item</a>
					<ul>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
					</ul>
				</li>
				<li>
					<a href="#">Nav Item</a>
					<ul>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
					</ul>
				</li>
				<li>
					<a href="#">Nav Item</a>
					<ul>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
					</ul>
				</li>
				<li>
					<a href="#">Nav Item</a>
					<ul>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
					</ul>
				</li>
			</ul>
		</nav>
		
		<h2>Slide Down #2</h2>
		<nav class="nav nav4">
			<ul>
				<li>
					<a href="#">Nav Item</a>
					<ul>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
					</ul>
				</li>
				<li>
					<a href="#">Nav Item</a>
					<ul>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
					</ul>
				</li>
				<li>
					<a href="#">Nav Item</a>
					<ul>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
					</ul>
				</li>
				<li>
					<a href="#">Nav Item</a>
					<ul>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
					</ul>
				</li>
				<li>
					<a href="#">Nav Item</a>
					<ul>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
					</ul>
				</li>
			</ul>
		</nav>
		
		<h2>Fold Out</h2>
		<nav class="nav nav5">
			<ul>
				<li>
					<a href="#">Nav Item</a>
					<ul>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
					</ul>
				</li>
				<li>
					<a href="#">Nav Item</a>
					<ul>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
					</ul>
				</li>
				<li>
					<a href="#">Nav Item</a>
					<ul>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
					</ul>
				</li>
				<li>
					<a href="#">Nav Item</a>
					<ul>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
					</ul>
				</li>
				<li>
					<a href="#">Nav Item</a>
					<ul>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
						<li><a href="#">Subnav Item</a></li>
					</ul>
				</li>
			</ul>
		</nav>
	
	</div>
              
            
!

CSS

              
                /* ==========================================================================
   NMC Bootstrap

   This LESS file imports all other LESS files. You should compile
   and minify this file before site launch.
   ========================================================================== */
/* Import NMC bootstrap */
/**
 * html5doctor.com Reset Stylesheet
 * v1.6.1
 * Last Updated: 2010-09-17
 * Author: Richard Clark - http://richclarkdesign.com
 * Twitter: @rich_clark
 */
html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}


body {
  line-height: 1;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
nav ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}
a {
  margin: 0;
  padding: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}
/* change colours to suit your needs */
ins {
  background-color: #ff9;
  color: #000;
  text-decoration: none;
}
/* change colours to suit your needs */
mark {
  background-color: #ff9;
  color: #000;
  font-style: italic;
  font-weight: bold;
}
del {
  text-decoration: line-through;
}
abbr[title],
dfn[title] {
  border-bottom: 1px dotted;
  cursor: help;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
/* change border colour to suit your needs */
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #cccccc;
  margin: 1em 0;
  padding: 0;
}
input,
select {
  vertical-align: middle;
}
/*---------------------------------------------------
    LESS Prefixer
  ---------------------------------------------------
    
    All of the CSS3 fun, none of the prefixes!

    As a rule, you can use the CSS properties you
    would expect just by adding a '.':

    box-shadow => .box-shadow(@args)

    Also, when shorthand is available, arguments are
    not parameterized. Learn CSS, not LESS Prefixer.

    -------------------------------------------------
    TABLE OF CONTENTS
    (*) denotes a syntax-sugar helper
    -------------------------------------------------

        .animation(@args)
            .animation-delay(@delay)
            .animation-direction(@direction)
            .animation-duration(@duration)
            .animation-iteration-count(@count)
            .animation-name(@name)
            .animation-play-state(@state)
            .animation-timing-function(@function)
        .background-size(@args)
        .border-radius(@args)
        .box-shadow(@args)
            .inner-shadow(@args) *
        .box-sizing(@args)
            .border-box() *
            .content-box() *
        .columns(@args)
            .column-count(@count)
            .column-gap(@gap)
            .column-rule(@args)
            .column-width(@width)
        .gradient(@default,@start,@stop) *
            .linear-gradient-top(@default,@color1,@stop1,@color2,@stop2,[@color3,@stop3,@color4,@stop4])*
            .linear-gradient-left(@default,@color1,@stop1,@color2,@stop2,[@color3,@stop3,@color4,@stop4])*
        .opacity(@factor)
        .transform(@args)
            .rotate(@deg)
            .scale(@factor)
            .translate(@x,@y)
            .translate3d(@x,@y,@z)
            .translateHardware(@x,@y) *
        .text-shadow(@args)
        .transition(@args)
            .transition-delay(@delay)
            .transition-duration(@duration)
            .transition-property(@property)
            .transition-timing-function(@function)



    Credit to LESS Elements for the motivation and
    to CSS3Please.com for implementation.

    Copyright (c) 2012 Joel Sutherland
    MIT Licensed:
    https://www.opensource.org/licenses/mit-license.php

-----------------------------------------------------*/
/* Animation */
/* Background Size */
/* Border Radius */
/* Box Shadows */
/* Box Sizing */
/* Columns */
/* Gradients */
/* Opacity */
/* Text Shadow */
/* Transforms */
/* Transitions */
/**
 * New Media Campaigns Idioms
 *
 * These are common patterns we use in all of our
 * projects. They are consolidated here to keep code DRY.
 *
 * Listing
 *    * .noText,.textReplace
 *    * .noList
 *    * .noForm
 *    * .fixedWidth(@width)
 *    * .columnWidth(@width)
 *    * .columnLeft(@width)
 *    * .columnRight(@width)
 *    * .fullSize
 *    * .absoluteDefault
 *    * .absoluteFullSize
 *    * .clearFix
 */
/*  Hides text when using image replacement */
.noText,
.textReplace {
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
}
/*  Removes bullets, margin, and padding from list */
.noList {
  list-style: none;
  margin: 0;
  padding: 0;
}
/*  Removes webkit styling from form element */
.noForm {
  border: none;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
}
/*  Center a fixed width container */
/*  Adds left or right columns (e.g. content and sidebar) */
/*  Set width and height of element to that of its parent */
.fullSize {
  height: 100%;
  width: 100%;
}
/*  Position element absolutely to 0,0 */
.absoluteDefault {
  position: absolute;
  left: 0;
  top: 0;
}
/*  Position element absolutely and set its width and height to that of its parent (useful for slideshows) */
.absoluteFullSize {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
}
/*  The micro clearfix http://nicolasgallagher.com/micro-clearfix-hack/ */
.clearFix {
  *zoom: 1;
}
.clearFix:before,
.clearFix:after {
  content: "";
  display: table;
}
.clearFix:after {
  clear: both;
}
/**
 * Spacing
 *
 * This LESS file defines margins and paddings for block-level
 * elements. Helper classes are included for use elsewhere
 * in site styles.
 */
/* Settings */
/**
 * Spacing
 * p, m, lh = padding, margin, line-height
 * a, t, r, b, l, h, v = all, top, right, bottom, left, horizontal, vertical
 * n, h, s, d = none(0px), half(@baseline / 2), single(@baseline), double(@baseline * 2), none(0px)
 * i = ! important
 */
.ptn {
  padding-top: 0px;
}
.ptni {
  padding-top: 0px !important;
}
.pbn {
  padding-bottom: 0px;
}
.pbni {
  padding-bottom: 0px !important;
}
.pln {
  padding-left: 0px;
}
.plni {
  padding-left: 0px !important;
}
.prn {
  padding-right: 0px;
}
.prni {
  padding-right: 0px !important;
}
.pvn {
  padding-top: 0px;
  padding-bottom: 0px;
}
.pvni {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}
.phn {
  padding-left: 0px;
  padding-right: 0px;
}
.phni {
  padding-left: 0px !important;
  padding-right: 0px !important;
}
.pan {
  padding-top: 0px;
  padding-bottom: 0px;
  padding-left: 0px;
  padding-right: 0px;
}
.pani {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
  padding-left: 0px !important;
  padding-right: 0px !important;
}
.mtn {
  margin-top: 0px;
}
.mtni {
  margin-top: 0px !important;
}
.mbn {
  margin-bottom: 0px;
}
.mbni {
  margin-bottom: 0px !important;
}
.mln {
  margin-left: 0px;
}
.mlni {
  margin-left: 0px !important;
}
.mrn {
  margin-right: 0px;
}
.mrni {
  margin-right: 0px !important;
}
.mvn {
  margin-top: 0px;
  margin-bottom: 0px;
}
.mvni {
  margin-top: 0px !important;
  margin-bottom: 0px !important;
}
.mhn {
  margin-left: 0px;
  margin-right: 0px;
}
.mhni {
  margin-left: 0px !important;
  margin-right: 0px !important;
}
.man {
  margin-top: 0px;
  margin-bottom: 0px;
  margin-left: 0px;
  margin-right: 0px;
}
.mani {
  margin-top: 0px !important;
  margin-bottom: 0px !important;
  margin-left: 0px !important;
  margin-right: 0px !important;
}
.lhn {
  line-height: 0px;
}
.lhni {
  line-height: 0px !important;
}
.ptq {
  padding-top: 4px;
}
.ptqi {
  padding-top: 4px !important;
}
.pbq {
  padding-bottom: 4px;
}
.pbqi {
  padding-bottom: 4px !important;
}
.plq {
  padding-left: 4px;
}
.plqi {
  padding-left: 4px !important;
}
.prq {
  padding-right: 4px;
}
.prqi {
  padding-right: 4px !important;
}
.pvq {
  padding-top: 4px;
  padding-bottom: 4px;
}
.pvqi {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}
.phq {
  padding-left: 4px;
  padding-right: 4px;
}
.phqi {
  padding-left: 4px !important;
  padding-right: 4px !important;
}
.paq {
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 4px;
  padding-right: 4px;
}
.paqi {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
}
.mtq {
  margin-top: 4px;
}
.mtqi {
  margin-top: 4px !important;
}
.mbq {
  margin-bottom: 4px;
}
.mbqi {
  margin-bottom: 4px !important;
}
.mlq {
  margin-left: 4px;
}
.mlqi {
  margin-left: 4px !important;
}
.mrq {
  margin-right: 4px;
}
.mrqi {
  margin-right: 4px !important;
}
.mvq {
  margin-top: 4px;
  margin-bottom: 4px;
}
.mvqi {
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}
.mhq {
  margin-left: 4px;
  margin-right: 4px;
}
.mhqi {
  margin-left: 4px !important;
  margin-right: 4px !important;
}
.maq {
  margin-top: 4px;
  margin-bottom: 4px;
  margin-left: 4px;
  margin-right: 4px;
}
.maqi {
  margin-top: 4px !important;
  margin-bottom: 4px !important;
  margin-left: 4px !important;
  margin-right: 4px !important;
}
.lhq {
  line-height: 4px;
}
.lhqi {
  line-height: 4px !important;
}
.pth {
  padding-top: 8px;
}
.pthi {
  padding-top: 8px !important;
}
.pbh {
  padding-bottom: 8px;
}
.pbhi {
  padding-bottom: 8px !important;
}
.plh {
  padding-left: 8px;
}
.plhi {
  padding-left: 8px !important;
}
.prh {
  padding-right: 8px;
}
.prhi {
  padding-right: 8px !important;
}
.pvh {
  padding-top: 8px;
  padding-bottom: 8px;
}
.pvhi {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
.phh {
  padding-left: 8px;
  padding-right: 8px;
}
.phhi {
  padding-left: 8px !important;
  padding-right: 8px !important;
}
.pah {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 8px;
  padding-right: 8px;
}
.pahi {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}
.mth {
  margin-top: 8px;
}
.mthi {
  margin-top: 8px !important;
}
.mbh {
  margin-bottom: 8px;
}
.mbhi {
  margin-bottom: 8px !important;
}
.mlh {
  margin-left: 8px;
}
.mlhi {
  margin-left: 8px !important;
}
.mrh {
  margin-right: 8px;
}
.mrhi {
  margin-right: 8px !important;
}
.mvh {
  margin-top: 8px;
  margin-bottom: 8px;
}
.mvhi {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}
.mhh {
  margin-left: 8px;
  margin-right: 8px;
}
.mhhi {
  margin-left: 8px !important;
  margin-right: 8px !important;
}
.mah {
  margin-top: 8px;
  margin-bottom: 8px;
  margin-left: 8px;
  margin-right: 8px;
}
.mahi {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
  margin-left: 8px !important;
  margin-right: 8px !important;
}
.lhh {
  line-height: 8px;
}
.lhhi {
  line-height: 8px !important;
}
.pts {
  padding-top: 16px;
}
.ptsi {
  padding-top: 16px !important;
}
.pbs {
  padding-bottom: 16px;
}
.pbsi {
  padding-bottom: 16px !important;
}
.pls {
  padding-left: 16px;
}
.plsi {
  padding-left: 16px !important;
}
.prs {
  padding-right: 16px;
}
.prsi {
  padding-right: 16px !important;
}
.pvs {
  padding-top: 16px;
  padding-bottom: 16px;
}
.pvsi {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}
.phs {
  padding-left: 16px;
  padding-right: 16px;
}
.phsi {
  padding-left: 16px !important;
  padding-right: 16px !important;
}
.pas {
  padding-top: 16px;
  padding-bottom: 16px;
  padding-left: 16px;
  padding-right: 16px;
}
.pasi {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}
.mts {
  margin-top: 16px;
}
.mtsi {
  margin-top: 16px !important;
}
.mbs {
  margin-bottom: 16px;
}
.mbsi {
  margin-bottom: 16px !important;
}
.mls {
  margin-left: 16px;
}
.mlsi {
  margin-left: 16px !important;
}
.mrs {
  margin-right: 16px;
}
.mrsi {
  margin-right: 16px !important;
}
.mvs {
  margin-top: 16px;
  margin-bottom: 16px;
}
.mvsi {
  margin-top: 16px !important;
  margin-bottom: 16px !important;
}
.mhs {
  margin-left: 16px;
  margin-right: 16px;
}
.mhsi {
  margin-left: 16px !important;
  margin-right: 16px !important;
}
.mas {
  margin-top: 16px;
  margin-bottom: 16px;
  margin-left: 16px;
  margin-right: 16px;
}
.masi {
  margin-top: 16px !important;
  margin-bottom: 16px !important;
  margin-left: 16px !important;
  margin-right: 16px !important;
}
.lhs {
  line-height: 16px;
}
.lhsi {
  line-height: 16px !important;
}
.pt3h {
  padding-top: 24px;
}
.pt3hi {
  padding-top: 24px !important;
}
.pb3h {
  padding-bottom: 24px;
}
.pb3hi {
  padding-bottom: 24px !important;
}
.pl3h {
  padding-left: 24px;
}
.pl3hi {
  padding-left: 24px !important;
}
.pr3h {
  padding-right: 24px;
}
.pr3hi {
  padding-right: 24px !important;
}
.pv3h {
  padding-top: 24px;
  padding-bottom: 24px;
}
.pv3hi {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}
.ph3h {
  padding-left: 24px;
  padding-right: 24px;
}
.ph3hi {
  padding-left: 24px !important;
  padding-right: 24px !important;
}
.pa3h {
  padding-top: 24px;
  padding-bottom: 24px;
  padding-left: 24px;
  padding-right: 24px;
}
.pa3hi {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}
.mt3h {
  margin-top: 24px;
}
.mt3hi {
  margin-top: 24px !important;
}
.mb3h {
  margin-bottom: 24px;
}
.mb3hi {
  margin-bottom: 24px !important;
}
.ml3h {
  margin-left: 24px;
}
.ml3hi {
  margin-left: 24px !important;
}
.mr3h {
  margin-right: 24px;
}
.mr3hi {
  margin-right: 24px !important;
}
.mv3h {
  margin-top: 24px;
  margin-bottom: 24px;
}
.mv3hi {
  margin-top: 24px !important;
  margin-bottom: 24px !important;
}
.mh3h {
  margin-left: 24px;
  margin-right: 24px;
}
.mh3hi {
  margin-left: 24px !important;
  margin-right: 24px !important;
}
.ma3h {
  margin-top: 24px;
  margin-bottom: 24px;
  margin-left: 24px;
  margin-right: 24px;
}
.ma3hi {
  margin-top: 24px !important;
  margin-bottom: 24px !important;
  margin-left: 24px !important;
  margin-right: 24px !important;
}
.lh3h {
  line-height: 24px;
}
.lh3hi {
  line-height: 24px !important;
}
.ptd {
  padding-top: 32px;
}
.ptdi {
  padding-top: 32px !important;
}
.pbd {
  padding-bottom: 32px;
}
.pbdi {
  padding-bottom: 32px !important;
}
.pld {
  padding-left: 32px;
}
.pldi {
  padding-left: 32px !important;
}
.prd {
  padding-right: 32px;
}
.prdi {
  padding-right: 32px !important;
}
.pvd {
  padding-top: 32px;
  padding-bottom: 32px;
}
.pvdi {
  padding-top: 32px !important;
  padding-bottom: 32px !important;
}
.phd {
  padding-left: 32px;
  padding-right: 32px;
}
.phdi {
  padding-left: 32px !important;
  padding-right: 32px !important;
}
.pad {
  padding-top: 32px;
  padding-bottom: 32px;
  padding-left: 32px;
  padding-right: 32px;
}
.padi {
  padding-top: 32px !important;
  padding-bottom: 32px !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
}
.mtd {
  margin-top: 32px;
}
.mtdi {
  margin-top: 32px !important;
}
.mbd {
  margin-bottom: 32px;
}
.mbdi {
  margin-bottom: 32px !important;
}
.mld {
  margin-left: 32px;
}
.mldi {
  margin-left: 32px !important;
}
.mrd {
  margin-right: 32px;
}
.mrdi {
  margin-right: 32px !important;
}
.mvd {
  margin-top: 32px;
  margin-bottom: 32px;
}
.mvdi {
  margin-top: 32px !important;
  margin-bottom: 32px !important;
}
.mhd {
  margin-left: 32px;
  margin-right: 32px;
}
.mhdi {
  margin-left: 32px !important;
  margin-right: 32px !important;
}
.mad {
  margin-top: 32px;
  margin-bottom: 32px;
  margin-left: 32px;
  margin-right: 32px;
}
.madi {
  margin-top: 32px !important;
  margin-bottom: 32px !important;
  margin-left: 32px !important;
  margin-right: 32px !important;
}
.lhd {
  line-height: 32px;
}
.lhdi {
  line-height: 32px !important;
}
.pt5h {
  padding-top: 40px;
}
.pt5hi {
  padding-top: 40px !important;
}
.pb5h {
  padding-bottom: 40px;
}
.pb5hi {
  padding-bottom: 40px !important;
}
.pl5h {
  padding-left: 40px;
}
.pl5hi {
  padding-left: 40px !important;
}
.pr5h {
  padding-right: 40px;
}
.pr5hi {
  padding-right: 40px !important;
}
.pv5h {
  padding-top: 40px;
  padding-bottom: 40px;
}
.pv5hi {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}
.ph5h {
  padding-left: 40px;
  padding-right: 40px;
}
.ph5hi {
  padding-left: 40px !important;
  padding-right: 40px !important;
}
.pa5h {
  padding-top: 40px;
  padding-bottom: 40px;
  padding-left: 40px;
  padding-right: 40px;
}
.pa5hi {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
}
.mt5h {
  margin-top: 40px;
}
.mt5hi {
  margin-top: 40px !important;
}
.mb5h {
  margin-bottom: 40px;
}
.mb5hi {
  margin-bottom: 40px !important;
}
.ml5h {
  margin-left: 40px;
}
.ml5hi {
  margin-left: 40px !important;
}
.mr5h {
  margin-right: 40px;
}
.mr5hi {
  margin-right: 40px !important;
}
.mv5h {
  margin-top: 40px;
  margin-bottom: 40px;
}
.mv5hi {
  margin-top: 40px !important;
  margin-bottom: 40px !important;
}
.mh5h {
  margin-left: 40px;
  margin-right: 40px;
}
.mh5hi {
  margin-left: 40px !important;
  margin-right: 40px !important;
}
.ma5h {
  margin-top: 40px;
  margin-bottom: 40px;
  margin-left: 40px;
  margin-right: 40px;
}
.ma5hi {
  margin-top: 40px !important;
  margin-bottom: 40px !important;
  margin-left: 40px !important;
  margin-right: 40px !important;
}
.lh5h {
  line-height: 40px;
}
.lh5hi {
  line-height: 40px !important;
}
.ptt {
  padding-top: 48px;
}
.ptti {
  padding-top: 48px !important;
}
.pbt {
  padding-bottom: 48px;
}
.pbti {
  padding-bottom: 48px !important;
}
.plt {
  padding-left: 48px;
}
.plti {
  padding-left: 48px !important;
}
.prt {
  padding-right: 48px;
}
.prti {
  padding-right: 48px !important;
}
.pvt {
  padding-top: 48px;
  padding-bottom: 48px;
}
.pvti {
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}
.pht {
  padding-left: 48px;
  padding-right: 48px;
}
.phti {
  padding-left: 48px !important;
  padding-right: 48px !important;
}
.pat {
  padding-top: 48px;
  padding-bottom: 48px;
  padding-left: 48px;
  padding-right: 48px;
}
.pati {
  padding-top: 48px !important;
  padding-bottom: 48px !important;
  padding-left: 48px !important;
  padding-right: 48px !important;
}
.mtt {
  margin-top: 48px;
}
.mtti {
  margin-top: 48px !important;
}
.mbt {
  margin-bottom: 48px;
}
.mbti {
  margin-bottom: 48px !important;
}
.mlt {
  margin-left: 48px;
}
.mlti {
  margin-left: 48px !important;
}
.mrt {
  margin-right: 48px;
}
.mrti {
  margin-right: 48px !important;
}
.mvt {
  margin-top: 48px;
  margin-bottom: 48px;
}
.mvti {
  margin-top: 48px !important;
  margin-bottom: 48px !important;
}
.mht {
  margin-left: 48px;
  margin-right: 48px;
}
.mhti {
  margin-left: 48px !important;
  margin-right: 48px !important;
}
.mat {
  margin-top: 48px;
  margin-bottom: 48px;
  margin-left: 48px;
  margin-right: 48px;
}
.mati {
  margin-top: 48px !important;
  margin-bottom: 48px !important;
  margin-left: 48px !important;
  margin-right: 48px !important;
}
.lht {
  line-height: 48px;
}
.lhti {
  line-height: 48px !important;
}
/**
 * Typography
 *
 * This LESS file defines the baseline, color, font-size, and other typographical
 * styles for text elements.
 */
/* Settings */
/* Base */
html,
body {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 16px;
}
/* Block-level */
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
dl,
p,
blockquote,
table,
form,
pre {
  margin-bottom: 16px;
}
/* Headers */
h1,
h2,
h3,
h4,
h5,
h6,
.alpha,
.beta,
.gamma,
.delta,
.epsilon,
.zeta,
.giga,
.mega,
.kilo,
.milli {
  color: #333333;
  font-family: 'Arial', sans-serif;
  font-weight: 700;
}
h1,
.alpha {
  font-size: 1.3125em;
  line-height: 32px;
}
h2,
.beta {
  font-size: 1.2249999999999999em;
  line-height: 32px;
}
h3,
.gamma {
  font-size: 1.1375em;
}
h4,
.delta {
  font-size: 1.05em;
  margin-bottom: 0px;
}
h5,
.epsilon {
  font-size: 0.9625000000000001em;
  margin-bottom: 0px;
}
h6,
.zeta {
  font-size: 0.875em;
  margin-bottom: 0px;
}
/* Headers (above scale) */
.giga {
  font-size: 1.575em;
  line-height: 32px;
}
.mega {
  font-size: 1.4875000000000003em;
  line-height: 32px;
}
.kilo {
  font-size: 1.4000000000000001em;
  line-height: 32px;
}
/* Headers (below scale) */
.milli {
  font-size: 0.7875em;
}
/* Text */
a {
  color: #333333;
}
a:link {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
small {
  font-size: 80%;
}
sup,
sub {
  font-size: 80%;
  line-height: 0px;
}
sup {
  vertical-align: super;
}
sub {
  vertical-align: sub;
}
blockquote {
  border-left: 5px solid rgba(0, 0, 0, 0.1);
  margin-left: 16px;
  margin-right: 16px;
  padding-left: 16px;
}
blockquote :last-child {
  margin-bottom: 0px;
}
pre,
code,
kbd {
  background: #F8F8F8;
  border: 1px solid #EAEAEA;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding;
  background-clip: padding-box;
  padding: 0 5px;
  font-family: Consolas, "Courier New", Courier, mono;
  font-size: 0.7875em;
  color: #333333;
  word-wrap: break-word;
}
pre {
  margin-left: 16px;
  margin-right: 16px;
}
strong {
  font-weight: bold;
}
em {
  font-style: italic;
}
ol,
ul,
dl {
  margin-left: 16px;
  padding-left: 16px;
}
ol ol,
ul ol,
dl ol,
ol ul,
ul ul,
dl ul {
  margin-bottom: 0px;
}
dt {
  font-weight: bold;
}
dd {
  margin-left: 16px;
}
.table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}
.table th,
.table td {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 8px;
  text-align: left;
}
.table thead th {
  vertical-align: bottom;
  font-weight: bold;
}
.table thead tr:first-child th {
  border-top: none;
}
.table-bordered {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-collapse: separate;
  border-left: none;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding;
  background-clip: padding-box;
}
.table-bordered th,
.table-bordered td {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}
.table-bordered thead:last-child tr:last-child th:first-child,
.table-bordered tbody:last-child tr:last-child td:first-child {
  -webkit-border-radius: 0 0 0 4px;
  -moz-border-radius: 0 0 0 4px;
  border-radius: 0 0 0 4px;
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding;
  background-clip: padding-box;
}
.table-striped tbody tr:nth-child(odd) td {
  background: rgba(0, 0, 0, 0.04);
}
/* ==========================================================================
   Forms
   ========================================================================== */
label {
  display: block;
}
label .req {
  color: red;
  font-weight: bold;
}
input.text,
fieldset,
textarea,
select,
.radio-group,
.checkbox-group {
  display: block;
  margin-bottom: 16px;
}
input.text,
textarea {
  border: none;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  background: #fff;
  border: 1px solid #ddd;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding;
  background-clip: padding-box;
  -webkit-box-shadow: inset rgba(0, 0, 0, 0.1) 0 1px 3px;
  -moz-box-shadow: inset rgba(0, 0, 0, 0.1) 0 1px 3px;
  box-shadow: inset rgba(0, 0, 0, 0.1) 0 1px 3px;
  height: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 8px;
  padding-right: 8px;
  width: 100%;
  margin-bottom: 16px !important;
}
input.text.error,
textarea.error {
  background-color: #F2DEDE;
  border-color: red;
  outline-color: red;
}
textarea {
  height: 96px;
}
select {
  min-width: 30%;
}
.checkbox-group label,
.radio-group label {
  font-weight: normal;
}
/* Import Project Files */
/* ==========================================================================
   Site Vars
   ========================================================================== */
/* ==========================================================================
   Spacing
   ========================================================================== */
/* ==========================================================================
   Typography Reset
   ========================================================================== */
/* ==========================================================================
   Grid
   ========================================================================== */
/* Typography */
body {
  font-size: 0.875em;
  line-height: 1em;
}
/* Block-level */
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
dl,
p,
blockquote,
table,
form,
pre {
  margin-bottom: 16px;
  line-height: 1.66666666666667em;
}
/* Headers */
h1,
h2,
h3,
h4,
h5,
h6,
.alpha,
.beta,
.gamma,
.delta,
.epsilon,
.zeta,
.giga,
.mega,
.kilo,
.milli {
  line-height: 1.2em;
  color: #333333;
  font-family: 'Arial', sans-serif;
  font-weight: 700;
}
h1,
.alpha {
  font-size: 2.66666666666667em;
}
h2,
.beta {
  font-size: 1.66666666666667em;
}
h3,
.gamma {
  font-size: 1.33333333333333em;
}
h4,
.delta {
  font-size: 1.11111111111111em;
}
h5,
.epsilon {
  font-size: 1em;
}
h6,
.zeta {
  font-size: 1em;
}
a {
  -webkit-transition: 200ms;
  -moz-transition: 200ms;
  -o-transition: 200ms;
  transition: 200ms;
}
/* Tables */
table {
  max-width: 100%;
}
table td,
table th {
  padding: 5px 15px;
  line-height: 1.2em;
  text-align: left;
  border: 1px solid #ccc;
}
table th {
  color: #fff;
  background: #000;
  border-color: #000000;
}
/* Forms */
form fieldset {
  margin: 0 0 1em;
}
form label {
  font-weight: 700;
}
form input[type="text"],
form input[type="search"],
form input[type="password"],
form input[type="tel"],
form input[type="email"],
form textarea {
  margin: 0;
  padding: 0 10px;
  width: 100%;
  height: 40px;
  line-height: 1.2em;
  font-family: 'Arial', sans-serif;
  font-size: 1em;
  border: 1px solid #ccc;
  -webkit-box-shadow: 0 0 0 0 #ffffff;
  -moz-box-shadow: 0 0 0 0 #ffffff;
  box-shadow: 0 0 0 0 #ffffff;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding;
  background-clip: padding-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-appearance: none;
}
form input[type="text"]:focus,
form input[type="search"]:focus,
form input[type="password"]:focus,
form input[type="tel"]:focus,
form input[type="email"]:focus,
form textarea:focus {
  outline: none;
}
form textarea {
  height: 10em;
  padding: 10px;
}
.btn,
input[type="submit"] {
  font-family: 'Arial', sans-serif;
  -webkit-appearance: none;
  cursor: pointer;
}
/* Layout */
html {
  -webkit-text-size-adjust: none;
  overflow-y: scroll;
  overflow-x: hidden;
}
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.ie7 img {
  -ms-interpolation-mode: bicubic;
}
body {
  padding: 20px;
}
.container {
  *zoom: 1;
  position: relative;
  margin: 0 auto;
  padding: 0 20px;
  width: 700px;
  height: 100%;
}
.container:before,
.container:after {
  content: "";
  display: table;
}
.container:after {
  clear: both;
}
.lt-ie9 {
  overflow: visible;
}
.lt-ie9 body {
  overflow: visible;
}
.lt-ie9 .container {
  width: 960px;
}
.lt-ie8 {
  overflow-x: auto;
  overflow-y: auto;
}
/* LAYOUT
====================================== */
#main {
  padding-top: 40px;
}
.primary-content {
  float: left;
  width: 63%;
}
.sidebar {
  float: right;
  width: 31.25%;
}
/* HELPER CLASSES
====================================== */
.inline-block {
  display: inline-block;
  *display: inline;
  zoom: 1;
}
.responsive-img {
  display: block;
  max-width: 100%;
  height: auto;
}
iframe {
  max-width: 100%;
}
.pattern {
  background-image: url(../images/pattern.png);
  background-position: 0 0;
  background-repeat: repeat;
}
.center {
  text-align: center;
}
@media screen and (max-width: 700px) {
  .container {
    padding: 0 10px;
  }
  /* LAYOUT
	====================================== */
  .primary-content,
  .sidebar {
    float: none;
    margin: 0 auto;
    width: 100%;
    max-width: 480px;
  }
}
/* All */
.nav {
  margin-bottom: 48px;
}
.nav ul {
  *zoom: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #333;
}
.nav ul:before,
.nav ul:after {
  content: "";
  display: table;
}
.nav ul:after {
  clear: both;
}
.nav ul > li {
  float: left;
  position: relative;
}
.nav a {
  display: block;
  padding: 10px 20px;
  line-height: 1.2em;
  color: #fff;
  border-left: 1px solid #595959;
}
.nav a:hover {
  text-decoration: none;
  background: #595959;
}
.nav li ul {
  background: #273754;
}
.nav li ul li {
  width: 200px;
}
.nav li ul a {
  border: none;
}
.nav li ul a:hover {
  background: rgba(0, 0, 0, 0.19999999999999996);
}
/* Not Animated
============================== */
.nav1 ul > li:hover ul {
  left: 0;
}
.nav1 li ul {
  position: absolute;
  left: -9999em;
  top: 36px;
  z-index: 1;
}
/* Fade In and Out
============================== */
.nav2 ul > li:hover ul {
  visibility: visible;
  opacity: 1;
  filter: alpha(opacity=100);
}
.nav2 li ul {
  position: absolute;
  left: 0;
  top: 36px;
  z-index: 1;
  visibility: hidden;
  opacity: 0;
  filter: alpha(opacity=0);
  -webkit-transition: 200ms ease;
  -moz-transition: 200ms ease;
  -o-transition: 200ms ease;
  transition: 200ms ease;
}
/* Slide Down
============================== */
.nav3 ul > li:hover ul li {
  height: 36px;
}
.nav3 li ul {
  position: absolute;
  left: 0;
  top: 36px;
  z-index: 1;
}
.nav3 li ul li {
  overflow: hidden;
  height: 0;
  -webkit-transition: height 200ms ease-in;
  -moz-transition: height 200ms ease-in;
  -o-transition: height 200ms ease-in;
  transition: height 200ms ease-in;
}
/* Slide Down 2
============================== */
.nav4 ul > li:hover ul li {
  max-height: 150px;
}
.nav4 li ul {
  position: absolute;
  left: 0;
  top: 36px;
  z-index: 1;
}
.nav4 li ul li {
  overflow: hidden;
  max-height: 0;
  -webkit-transition: max-height 500ms ease;
  -moz-transition: max-height 500ms ease;
  -o-transition: max-height 500ms ease;
  transition: max-height 500ms ease;
}
/* Fold Out
============================== */
.nav5 ul > li:hover ul {
  max-height: 1000px;
  -webkit-transform: perspective(400) rotate3d(0, 0, 0, 0);
}
.nav5 li ul {
  position: absolute;
  left: 0;
  top: 36px;
  z-index: 1;
  max-height: 0;
  overflow: hidden;
  -webkit-transform: perspective(400) rotate3d(1, 0, 0, -90deg);
  -webkit-transform-origin: 50% 0;
  -webkit-transition: 350ms;
  -moz-transition: 350ms;
  -o-transition: 350ms;
  transition: 350ms;
}

h2{margin-top:230px;}
body{padding:200px;}


              
            
!

JS

              
                
              
            
!
999px
What did the HTML say to the CSS? I like your style.

Console