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.


    <div id="wrapper">

        <header id="header">

            <div class="wrapper">

                <h1>Header Section</h1>

            </div><!-- .wrapper -->


        <section id="content">

            <div class="wrapper">

                <article id="primary-content">
                    <h2>Content Section</h2>

                    <p>Praesent bibendum neque hendrerit turpis lacinia dignissim. Ut sed malesuada lectus. Aliquam sed lorem sit amet metus adipiscing suscipit. Sed porta nunc nec nibh dapibus semper. Aenean varius tortor non arcu pretium eget pharetra sapien fermentum. Mauris facilisis aliquet magna vel convallis. Pellentesque ut mi sed leo sagittis bibendum non sit amet mauris.</p>

                </article><!-- #primary-content -->

            </div><!-- .wrapper -->

        </section><!-- #content -->

        <footer id="footer">

            <p>Footer Section</p>


    </div><!-- #wrapper -->



                html {margin:0;padding:0;}

body {
    color: #222;
    background: #eee;

h1 {
    padding: 30px 0 0;
    font-size: 18px;
    font-weight: bold;
    color: #fff;

h2 {
    padding: 20px 0 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;

p {margin: 1em 0;}

#header, #content, #footer {position:relative;min-width:480px;}

.wrapper {
    position: relative;
    width: 460px;
    margin: 0 auto;

/* Header Section */
#header {
    z-index: 1000;
    background: #ccc;
    border-bottom: 8px solid #A59B9B;
    -webkit-box-shadow: 0 0 12px #000;
    box-shadow:         0 0 12px #000;

#header .wrapper {    
    height: 80px;

/* Content Section */
#content {clear: both;}

#content:before {
    content: "\0020";
    display: block;
    position: absolute;
    z-index: 800;
    top: 0;
    left: 50%;
    margin-left: -230px;
    width: 460px;
    height: 120px;
    -webkit-box-shadow: 0 0 12px #333;
    box-shadow:         0 0 12px #333;

    /* Rounded corners, browser-specific for compatibility. */
    -webkit-border-radius: 9px;
    -webkit-border-bottom-right-radius: 10px 150px;
    -webkit-border-bottom-left-radius:  10px 150px;
    -moz-border-radius: 9px;
    -moz-border-radius-bottomright: 10px 150px;
    -moz-border-radius-bottomleft:  10px 150px;

    /* CSS3 standard rounded corners */
    border-radius: 9px; /* Slightly larger border-radius than the note */
    border-bottom-right-radius: 10px 150px; /* Small x + big y = nice tapered shape */
    border-bottom-left-radius:  10px 150px; /* Ditto above */

#content .wrapper {
    z-index: 900;
    background: #fff;
    border-bottom: 15px solid #A59B9B;

#primary-content {
    padding: 10px 20px;

/* Footer Section */
#footer {text-align:center;}