Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

Save Automatically?

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

              
                <section>
    <h1>Headline 1</h1>

    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Illo consequuntur harum consectetur quasi et cumque, pariatur minima. Molestiae, aut quis eligendi magnam beatae, recusandae dolores deleniti, veritatis facere nemo sed quisquam esse sunt hic consequuntur repellendus veniam distinctio ipsum illo. Ex odit ducimus minima dolores accusantium ea modi accusamus esse.</p>
    <h2>Headline 2</h2>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Tenetur, rerum reprehenderit. Maxime est praesentium quia suscipit sunt fugiat amet hic nostrum, doloremque consequuntur, error obcaecati natus, sit illum perferendis nobis. Voluptas eligendi molestiae minus, corrupti eum illo consequatur nobis dolorem explicabo, in, iste odit. Delectus libero possimus nesciunt rerum obcaecati minima aspernatur cum error molestias, reiciendis adipisci modi quibusdam illum, quasi, ut earum repellendus nisi porro aut repudiandae ipsa at commodi? Aliquid tenetur dolore exercitationem porro, accusantium repellat sunt eligendi? Omnis, necessitatibus! Velit, quam nobis facere rem in ullam, iure autem amet ab assumenda voluptatibus! Exercitationem nisi sunt voluptate fuga odit. Rem vel labore quas amet illum eos iste harum doloremque ab! Perspiciatis voluptatibus dolorem voluptates. Natus amet, eveniet cupiditate laborum quibusdam minus fugiat aperiam quis nobis, officiis aspernatur dolores. Ea cumque aliquam ad est debitis molestiae consequatur dolor illo, mollitia expedita excepturi quam vero sint. A culpa iste voluptates, similique labore sint quasi consequatur commodi quibusdam totam rerum eaque blanditiis sapiente obcaecati perferendis! Quae eos a totam veniam iusto ipsam optio dignissimos aut maxime temporibus quod tempore amet, incidunt quo natus quasi necessitatibus numquam, iure doloremque quia culpa cumque accusamus, deserunt cum. Dicta officiis id impedit culpa corporis eaque quos voluptatum praesentium deserunt pariatur, nisi harum quasi voluptas possimus. Harum expedita doloremque fugiat. Laborum aperiam deserunt excepturi consectetur repellat eaque amet dolorum aut beatae esse? Itaque accusantium earum ipsum aut quas quam incidunt repellendus dignissimos, maiores vel ab molestiae beatae, veniam quod assumenda quos. Aliquid inventore possimus voluptas? Fugiat qui possimus alias magnam esse unde? Nobis ad est dolorum blanditiis ducimus assumenda deleniti obcaecati, perferendis ullam quidem quod placeat provident nisi sit veniam possimus id! Voluptatum, eligendi necessitatibus sint at distinctio reiciendis officiis ratione fugit neque quas sunt voluptas non harum tempore omnis! Culpa quibusdam error voluptatibus deleniti optio!</p>
</section>
              
            
!

CSS

              
                :root {
    --main-bg-color: #121212;
    --main-text-color: #f5f5f5;
    --main-accent-color: #42b9fb;
}

/* basic styling */
body {
    font-family: Inter, -system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Now", Helvetica, Arial, sans-serif;
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
}

h1 {
    color: var(--main-accent-color);
}

section {
    margin: 0 auto;
    max-width: 640px;
    line-height: 1.618;
}

/* end basic styling */

/* scrollbar styling */

/* Firefox, future CSS Standard */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--main-accent-color) var(--main-bg-color);
}

/* WebKit Browsers */
html::-webkit-scrollbar {
    width: 7px; /* this roughly equals the value thin from Firefox's interpretation of the value thin for scrollbar-width */
}

html::-webkit-scrollbar-thumb {
    background: var(--main-accent-color);
    border-radius: 15px; /* Firefox has rounded corners for the scrollbar thumb */
}

html::-webkit-scrollbar-track {
    background: var(--main-bg-color);
}

/* end scrollbar styling */
/* end of file */
              
            
!

JS

              
                
              
            
!
999px

Console