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.


                <h1>Display grid</h1>
<div class="wrapper">
  <div>Cell 1</div>
  <div>Cell 2</div>
  <div>Cell 3</div>
  <div>Cell 4</div>
  <div>Cell 5</div>
  <div>Cell 6</div>
  <div>Cell 7</div>
  <div>Cell 8</div>
  <div>Cell 9</div>
  <div>Cell 10</div>
  <div>Cell 11</div>
  <div>Cell 12</div>

  <div>Cell 13</div>
  <div>Cell 14</div>
  <div>Cell 15</div>
  <div>Cell 16</div>
  <div>Cell 17</div>
  <div>Cell 18</div>
  <div>Cell 19</div>
  <div>Cell 20</div>
  <div>Cell 21</div>
  <div>Cell 22</div>
  <div>Cell 23</div>
  <div>Cell 24</div>
  <div>Cell 25</div>


                .wrapper {
  border: 1px solid blue;
  display: grid;
  grid-template: repeat(5, 100px)/ repeat(5, 1fr);

  grid-gap: 10px;

.wrapper > div {
  border: 1px solid black;
  background-color: lightblue;