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

              
                <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sscaffold-css@0.1.0/sscaffold.min.css" integrity="sha256-NxJ/Enl6+QKA3ysgZq44/qc6cWmUXbAB/hl+QFBuMck=" crossorigin="anonymous">

 <main>

            <section id="typography">
                <h1>Typography</h1>
                <h1>Heading 1</h1>
                <h2>Heading 2</h2>
                <h3>Heading 3</h3>
                <h4>Heading 4</h4>
                <h5>Heading 5</h5>
                <h6>Heading 6</h6>
            </section>
            <section id="lists">
                <h1>Lists</h1>

                <ol>
                    <li>First ordered list item
                        <ul>
                            <li>Unordered sub-item a</li>
                            <li>Unordered sub-item b
                                <dl>
                                    <dt>Description list item I</dt>
                                    <dd>Description item item II</dd>
                                </dl>
                            </li>
                        </ul>
                    </li>
                    <li>Second ordered list item</li>
                </ol>
            </section>
            <section id="tables">
                <h1>Tables</h1>
                <div class="table-container">
                    <table>
                        <thead>
                            <tr>
                                <th>Name</th>
                                <th>Century</th>
                                <th>Field</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>Elizabeth Garrett Anderson</td>
                                <td>19<sup>th</sup></td>
                                <td>Medicine</td>
                            </tr>
                            <tr>
                                <td>Mary Anning</td>
                                <td>19<sup>th</sup></td>
                                <td>Paleontology</td>
                            </tr>
                            <tr>
                                <td>Barbara McClintock</td>
                                <td>20<sup>th</sup></td>
                                <td>Genetics</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </section>
            <section id="blockquotes">
                <h1>Blockquotes</h1>
                <blockquote>
                    &ldquo;Lorem ipsum dolor sit amet, consectetur adipiscing elit&rdquo;, she said.
                </blockquote>
            </section>
            <section id="code">
                <h1>Code</h1>

                <pre><code>
10 PRINT HELLO WORLD
20 GOTO 10
                </code></pre>
            </section>
            <section id="forms">
                <h1>Forms and <a href="javascript:" class="button">buttons</a></h1>

                <form>
                    <fieldset>
                        <label for="nameField">Name</label>
                        <input type="text" placeholder="CJ Patoilo" id="nameField">
                        <label for="ageRangeField">Age Range</label>
                        <select id="ageRangeField">
                            <option value="0-13">0-13</option>
                            <option value="14-17">14-17</option>
                            <option value="18-23">18-23</option>
                            <option value="24+">24+</option>
                        </select>
                        <label for="commentField">Comment</label>
                        <textarea placeholder="Hi CJ …" id="commentField"></textarea>
                        <div class="float-right">
                            <input type="checkbox" id="confirmField">
                            <label class="inline" for="confirmField">Send a copy to yourself</label>
                        </div>
                        <input type="submit" value="Send" onclick="javascript:return false;">
                    </fieldset>
                </form>
            </section>
            <section id="columns">
                <h1>Flexbox columns</h1>

                <div>
                    <div class="row">
                        <div class="column">.column</div>
                        <div class="column">.column</div>
                        <div class="column">.column</div>
                        <div class="column">.column</div>
                    </div>
                    <div class="row">
                        <div class="column">.column</div>
                        <div class="column column-50 column-offset-25">.column column-50 column-offset-25</div>
                    </div>
                </div>
                <h4>Column widths</h4>
                    <div>
                        <div class="row">
                            <div class="column column-10">10%</div>
                        </div>
                        <div class="row">
                            <div class="column column-20">20%</div>
                        </div>
                        <div class="row">
                            <div class="column column-25">25%</div>
                        </div>
                        <div class="row">
                            <div class="column column-33">33%</div>
                        </div>
                        <div class="row">
                            <div class="column column-40">40%</div>
                        </div>
                        <div class="row">
                            <div class="column column-50">50%</div>
                        </div>
                        <div class="row">
                            <div class="column column-60">60%</div>
                        </div>
                        <div class="row">
                            <div class="column column-67">67%</div>
                        </div>
                        <div class="row">
                            <div class="column column-70">70%</div>
                        </div>
                        <div class="row">
                            <div class="column column-75">75%</div>
                        </div>
                        <div class="row">
                            <div class="column column-80">80%</div>
                        </div>
                        <div class="row">
                            <div class="column column-90">90%</div>
                        </div>
                        <div class="row">
                            <div class="column">100%</div>
                        </div>
                    </div>
            </section>
            <section id="grid">
                <h1>The 12-column grid</h1>

                <div>
                    <div class="row">
                        <div class="one column">One</div>
                        <div class="eleven columns">Eleven</div>
                    </div>
                    <div class="row">
                        <div class="two columns">Two</div>
                        <div class="ten columns">Ten</div>
                    </div>
                    <div class="row">
                        <div class="three columns">Three</div>
                        <div class="nine columns">Nine</div>
                    </div>
                    <div class="row">
                        <div class="four columns">Four</div>
                        <div class="eight columns">Eight</div>
                    </div>
                    <div class="row">
                        <div class="five columns">Five</div>
                        <div class="seven columns">Seven</div>
                    </div>
                    <div class="row">
                        <div class="six columns">Six</div>
                        <div class="six columns">Six</div>
                    </div>
                    <div class="row">
                        <div class="seven columns">Seven</div>
                        <div class="five columns">Five</div>
                    </div>
                    <div class="row">
                        <div class="eight columns">Eight</div>
                        <div class="four  columns">Four</div>
                    </div>
                    <div class="row">
                        <div class="nine columns">Nine</div>
                        <div class="three columns">Three</div>
                    </div>
                    <div class="row">
                        <div class="ten columns">Ten</div>
                        <div class="two columns">Two</div>
                    </div>
                    <div class="row">
                        <div class="eleven columns">Eleven</div>
                        <div class="one column">One</div>
                    </div>
                </div>
            </section>
            <section id="footer">
                <h1>Sticky Footer</h1>

                <pre><code>&lt;body&gt;
    &lt;header&gt;&hellip;&lt;/header&gt;
    &lt;main&gt;&hellip;&lt;/main&gt;
    &lt;footer&gt;&hellip;&lt;/footer&gt;
&lt;/body&gt;</code></pre>

            </section>
        </main>
        <footer>
        </footer>
              
            
!

CSS

              
                #logo {
                display: block;
                margin: 0 auto 2.0rem auto;
                margin-bottom: 4.0rem;
            }

            .column {
                background: #d1d1d1;
                border: 1px solid #efefef;
                display: block;
                font-size: 1rem;
                font-weight: 600;
                height: 3rem;
                letter-spacing: .1rem;
                line-height: 3rem;
                margin-bottom: 2.5rem;
                text-align: center;
                text-transform: uppercase;
            }

            /* skeleton.css grid */
            #grid .column,
            #grid .columns {
                background: #EEE;
                text-align: center;
                border-radius: 4px;
                font-size: 1rem;
                text-transform: uppercase;
                height: 30px;
                line-height: 30px;
                margin-bottom: .75rem;
                font-weight: 600;
                letter-spacing: .1rem;
            }

            @media (min-width: 550px) {
                #grid .column,
                #grid .columns {
                    margin-bottom: 1.5rem;
                }
              
            
!

JS

              
                
              
            
!
999px

Console