Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


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


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.


Auto Save

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.


  <article>Item 1</article>
  <article>Item 2</article>
  <article>Item 3</article>
  <article>Item 4</article>
  <article>Item 5</article>
  <article>Item 6</article>
  <article>Item 7</article>
  <article>Item 8</article>
  <article>Item 9</article>
  <article>Item 10</article>
  <article>Item 11</article>
  <article>Item 12</article>
  <article>Item 13</article>
  <article>Item 14</article>
  <article>Item 15</article>
  <article>Item 16</article>
  <article>Item 17</article>
  <article>Item 18</article>
  <article>Item 19</article>
  <article>Item 20</article>
  <article>Item 21</article>
  <article>Item 22</article>
  <article>Item 23</article>
  <article>Item 24</article>
  <article>Item 25</article>
  <article>Item 26</article>
  <article>Item 27</article>
  <article>Item 28</article>
  <article>Item 29</article>
  <article>Item 30</article>


                @use postcss-preset-env{
  stage: 0;

body {
  padding: 2rem;

main {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 10rem;
  grid-gap: 1rem;
  /* Disable line below to see the difference */
  grid-auto-flow: dense;

article {
  padding: 1rem;
  border: 1px solid rebeccapurple;
  &:nth-child(3n) {
    grid-column: span 2;
    grid-row: auto;
    background: rebeccapurple;

  &:nth-child(5n+1) {
    grid-column: auto;
    grid-row: span 2;
    background: goldenrod;

  &:nth-child(9n) {
    grid-column: span 3;
    grid-row: span 2;
    background: tomato;