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.


<header>My website</header>
<div class="content">
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas quis tellus fermentum, suscipit nunc at,
    ullamcorper orci. Morbi tincidunt urna eget odio auctor, a accumsan nisi varius. Quisque eleifend nunc vel ipsum
    sodales gravida. Vivamus interdum ultricies nibh. Suspendisse sagittis facilisis lorem at feugiat. Proin vulputate
    pulvinar metus, sed faucibus urna accumsan ut. Suspendisse euismod velit leo, et porttitor elit volutpat nec. Etiam
    id ultrices felis, a dictum dolor. Suspendisse tristique aliquet lectus nec ultrices. Morbi justo justo, luctus id
    varius tempus, fringilla sed nibh. Ut faucibus luctus iaculis.
<footer>My footer (from <a href="" target="_blank_">Css grid with footer fixed at the bottom</a>)</footer>


                 body {
        height: 100vh;
        display: grid;
          'header header'
          'content content'
          'footer footer';
        /* footer right after content ends */
        /* grid-template-rows: min-content min-content min-content;*/

        /* content takes any extra space (1fr) */
        grid-template-rows: min-content 1fr min-content;
        grid-template-columns: 1fr;
        margin: 0;
    header {
        grid-area: header;
        padding: 20px;
        background-color: #dddddd;
    .content {
        grid-area: content;
        padding: 20px;
    footer {
        grid-area: footer;
        padding: 20px;
        background-color: #dddddd;