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


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.


                <header class="header">
  <div class="header__title">
  <div class="header__reference">
    <ul class="reference-list">
      <li><a class="reference-list__link" href="">MDN reference</a></li>
      <li><a class="reference-list__link" href="">caniuse Support</a></li>

  <div class="example">
      In this example, we are using an argument of <code>250px</code> for the <code>fit-content()</code> function. This tells the browser to restrict the first grid column to a width of 350px, causing the text content to break to a new line to fit:

    <div class="example__demo example__demo--fit-content">
      <div class="grid">
        <div class="grid__col-a">
            <p>The simple act of paying attention can take you a long way.</p>
              <p><cite>Keanu Reeves</cite></p>
        <div class="grid__col-b">🏄</div>
      The other value for <code>grid-template-columns</code>, <code>1fr</code>, tells the browser to distribute the remaining space evenly by a factor of one. <a href="">The <code>fr</code> unit is relatively new</a>, designed to be used with CSS Grid.


                // Demo
.grid {
  display: grid;
  grid-template-columns: fit-content(250px) 1fr;

// Pen Setup
.example__demo--fit-content {
  color: var(--color-cinder);
  padding: 0.5rem;

.grid__col-a {
  background-color: var(--color-sand);

.grid__col-b {
  align-items: center;
  background: var(--color-cerulean) url("") repeat;
  display: flex;
  font-size: var(--size-beta);
  justify-content: center;

blockquote {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: var(--size-zeta);

footer {
  margin-top: var(--size-zeta);

cite {
  border-top: 2px solid var(--color-white);
  font-size: var(--size-legal);
  font-style: normal;
  font-weight: 400;
  padding-top: 0.3rem;