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


                <h3>How to make pancakes</h3>
  <p>Put the flour into a large bowl, make a well in the centre and pour in the milk and eggs. Give the liquid mixture a quick whisk before incorporating the flour. Continue to whisk until you have a smooth batter.</p>
  <p>Now add 1 tbsp vegetable oil and whisk thoroughly.</p>
  <p>Take a crêpe pan, or large frying pan, dip some kitchen roll in the oil and carefully wipe the inside of the pan. Heat the pan over a medium heat for a minute.</p>
  <p>Add just under a ladleful of batter to the pan and immediately start swirling it round the pan to get a nice even layer.</p>
  <p>Cook the pancake for approximately 30-40 seconds. Use a palette knife to lift the pancake carefully to look at the underside to check it is golden-brown before turning over. Cook the other side for approx 30-40 seconds and transfer to a serving plate.</p>


                body {
  counter-reset: section;           /* Set the section counter to 0 */
p:before {
  counter-increment: section;      /* Increment the section counter */
  content: "" counter(section) ""; /* Display the counter */
  font-weight: bold;
  padding-top: 0px;
  padding-bottom: 0px;
  margin-right: 5px;
  font-size: 16px;
	color: #555555;
    background: -moz-linear-gradient(#FAFAFA, #DADADA) repeat scroll 0 0 transparent;
    background: -webkit-gradient(linear,left top, left bottom, from(#FAFAFA), to(#DADADA));
    background: -o-linear-gradient(#3f3f3f, #000);
	background: -ms-linear-gradient(top, #FAFAFA 0%,#DADADA 100%); /* IE10+ */
	filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#FAFAFA', EndColorStr='#DADADA', GradientType=0); /* IE6-9 */
    border: 1px solid #CCCCCC;
    border-radius: 16px 16px 16px 16px;
    height: 27px;
	width: 27px;
    line-height: 27px;    
    text-shadow: 1px 1px #FFFFFF;
	top: -1px;
    box-shadow: 0 0 0 1px #FFFFFF, 1px 1px 4px #DDDDDD;
h3 {
      font-weight: bold;
  padding-top: 5px;
  padding-bottom: 10px;
  color: #242424;
  font-size: 20px;
 text-align: center;
  font-family: arial;

section {
  width: 600px;
  margin: auto;
  font-size: 16px;
  line-height: 24px;
  font-family: arial;
p {
  margin-bottom: 10px;


The best caches are like the best hugs. Warm.