Pen Settings



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


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


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.


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.


    <li><a href="#">Link 1</a></li>
    <li><a href="#">Link 2</a></li>
    <li><a href="#">Link 3</a></li>


                /* Menu styling */
nav {
    height: 95px;
    overflow: hidden;
    width: 50%;
    margin-left: 30%;
    position: relative;

nav ul {
    display: inline;

nav ul li {
    list-style: none;
    overflow: hidden;
    display: inline;

nav a {
    display: block;
    margin-bottom: 10px;
    line-height: 50px;
    height: 50px;
    float: left;
    width: 24%;
    overflow: hidden;

    text-align: center;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 100px 0 #FFF,     /* cloned text for hover state */
                 1px 76px 10px #000; /* shadow on hover state */
    /* Color scheme */
    color: #FFF;
    background: #000;
    border-right: 2px solid #FFF;
    border-left: 2px solid #FFF; 

    /* Transitions */
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;

/* Pulls the text up using margins while increasing the height */
nav a:hover {
    text-shadow: 0 50px 0 #FFF, 
                 1px 51px 20px #FFF;
    margin-top: -50px;
    height: 100px;
    background: #222;

/* Style code for Codepen, doesn't need to be copied */
body {
    background: #333 url("");
    margin-top: 100px;


                // CHANGELOG

// Update May 26, 2013
// Changed the text positioning to use line-height instead of padding-top to increase compatibility when using different fonts.