Pen Settings



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


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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



Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO


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.


Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:


Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO



::-webkit-scrollbar              { /* 1 */ }
::-webkit-scrollbar-button       { /* 2 */ }
::-webkit-scrollbar-track        { /* 3 */ }
::-webkit-scrollbar-track-piece  { /* 4 */ }
::-webkit-scrollbar-thumb        { /* 5 */ }
::-webkit-scrollbar-corner       { /* 6 */ }
::-webkit-resizer         		 { /* 7 */ }

/* For the "inset" look only */
html {
    overflow: auto;
body {
    position: absolute;
    top: 20px;
    left: 20px;
    bottom: 20px;
    right: 20px;
    padding: 30px; 
    overflow-y: scroll;
    overflow-x: hidden;

/* Let's get this party started */
::-webkit-scrollbar {
    width: 11px;
/* Track */
::-webkit-scrollbar-track {
    border: 5px solid #fff;
    background: red;
/* Handle */
::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: red; 
::-webkit-scrollbar-thumb:window-inactive {
	background: rgba(255,0,0,0.4); 



	Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris ut nulla eget turpis fringilla ultricies efficitur at libero. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nunc finibus eros vitae nunc egestas, et varius nunc scelerisque. Integer sagittis, odio ac mollis sodales, lectus lacus suscipit magna, in ultricies lorem lacus vel ligula. Etiam a mauris porttitor, tempor nisl varius, accumsan lectus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas ornare vestibulum ante. Nulla faucibus lectus ac fringilla dignissim. Duis tincidunt elit et odio mollis vestibulum. Pellentesque id tortor sed purus porta egestas mollis eu tortor. Fusce massa nibh, lacinia a malesuada in, posuere sit amet ipsum. Vivamus lobortis massa ac iaculis aliquet. Curabitur in nulla dolor.

Praesent quis eleifend erat, at tempor urna. Sed non augue nec libero condimentum sagittis in id mi. Donec congue sit amet nulla non interdum. Mauris lobortis sapien ac orci eleifend, sit amet commodo dui gravida. Ut sagittis malesuada erat semper vulputate. Aliquam vel risus mi. Aliquam condimentum sem quis mi posuere, non aliquet leo finibus.
Vestibulum accumsan mi vitae tortor tincidunt posuere. Maecenas dignissim magna vel finibus ullamcorper. Fusce iaculis dapibus risus, nec ullamcorper purus fermentum at. Sed molestie pharetra quam sed maximus. Mauris molestie, nisi a gravida dapibus, urna metus viverra magna, ut laoreet risus purus ut nisl. Etiam rhoncus eget arcu quis lobortis. Interdum et malesuada fames ac ante ipsum primis in faucibus. Mauris et mi vitae lacus laoreet elementum. Mauris suscipit nibh non dolor tincidunt, vel tristique nibh scelerisque. Donec varius, justo sit amet hendrerit lobortis, purus neque congue velit, eget posuere massa lorem ut eros. Integer consectetur ultricies elit id egestas.
Aliquam interdum tempor malesuada. Pellentesque tristique eleifend nunc, sit amet aliquet ligula. Integer euismod vehicula suscipit. Donec aliquam, leo sed blandit auctor, libero sem dignissim lectus, quis condimentum nunc eros et nisi. Donec pellentesque neque lacus, a commodo justo pellentesque vel. Nunc condimentum at nisi vitae eleifend. Maecenas dictum metus sem, eget molestie neque venenatis quis. Praesent rutrum pharetra urna, vitae vulputate odio porttitor eget. Aliquam lacinia scelerisque mi, ac porta lacus tempor eu. Duis eros ligula, semper sit amet gravida quis, volutpat sit amet nisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Fusce varius vitae dui ut eleifend. Nam ultrices eget justo eu eleifend. Maecenas ornare ut lorem eu varius. Etiam eget dolor eget nisi aliquam accumsan et eu urna. Vestibulum iaculis ornare metus ac condimentum. Mauris lacinia eleifend sem a sagittis. Quisque aliquet, neque sit amet viverra hendrerit, magna risus laoreet risus, ac dapibus lectus erat at ex. Mauris sit amet feugiat mauris. Fusce ultrices iaculis dolor nec feugiat. Maecenas ac augue sapien. Nam molestie lacus ut ultricies dapibus. Maecenas commodo ullamcorper elit sed imperdiet. Phasellus vel ultricies velit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse potenti. Donec quis mauris vel quam egestas aliquam vitae sed mi.





Why did the programmer quit her job? She didn't get arrays.