Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <div class="grid">
  <div class="grid-item">
    <h2>More accessible</h2>
    <p>I love cheese, especially queso cheese on toast. Cheesecake who moved my cheese halloumi cottage cheese cottage cheese cheese slices cottage cheese manchego. Cheese triangles pepper jack bocconcini cheese and biscuits st. agur blue cheese cheesecake babybel blue castello. Edam cheese and wine st. agur blue cheese croque monsieur cheesecake.</p>

    <p>Airedale cheesy feet brie. Roquefort bavarian bergkase squirty cheese cheesy feet bavarian bergkase everyone loves macaroni cheese squirty cheese. Cow cheesy grin cheesy grin cheese on toast roquefort caerphilly cream cheese queso. Who moved my cheese jarlsberg.</p>

    <p>Red leicester cheesy feet cheese slices. Camembert de normandie stinking bishop ricotta brie feta macaroni cheese mozzarella babybel. Parmesan boursin swiss stinking bishop cut the cheese feta cream cheese cow. Feta cottage cheese cauliflower cheese dolcelatte halloumi bocconcini.</p>
  </div>
  <div class="grid-item">
    <h2>Less accessible</h2>
    <p>I love cheese, especially queso cheese on toast. Cheesecake who moved my cheese halloumi cottage cheese cottage cheese cheese slices cottage cheese manchego. Cheese triangles pepper jack bocconcini cheese and biscuits st. agur blue cheese cheesecake babybel blue castello. Edam cheese and wine st. agur blue cheese croque monsieur cheesecake.</p>

    <p>Airedale cheesy feet brie. Roquefort bavarian bergkase squirty cheese cheesy feet bavarian bergkase everyone loves macaroni cheese squirty cheese. Cow cheesy grin cheesy grin cheese on toast roquefort caerphilly cream cheese queso. Who moved my cheese jarlsberg.</p>

    <p>Red leicester cheesy feet cheese slices. Camembert de normandie stinking bishop ricotta brie feta macaroni cheese mozzarella babybel. Parmesan boursin swiss stinking bishop cut the cheese feta cream cheese cow. Feta cottage cheese cauliflower cheese dolcelatte halloumi bocconcini.</p>
  </div>
</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Open+Sans);

body {
  font-family: "Open Sans", sans-serif;
  margin: 1rem;
}

h2 {
  font-size: 1.5rem;
}

p {
  font-size: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: minmax(500px, 900px);
}

.grid-item {
  padding: 0 1.25rem;
  margin: 1rem;
  text-align: left;
  overflow: hidden;
}

.grid-item:first-child {
  grid-row: span 2;
  line-height: 1.6875rem;
  max-width: 544px;
  max-inline-size: 66ch;
}

.grid-item:first-child p {
  margin-bottom: 2rem;
}

.grid-item:nth-child(2) {
  grid-column: 1 / span 4;
  line-height: 1.2rem;
  letter-spacing: -0.05rem;
}

              
            
!

JS

              
                
              
            
!
999px

Console