Pen Settings

HTML

CSS

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

JavaScript

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

Behavior

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.

HTML

              
                <div class="grid-container">
	<div class="grid-item content">
    <h1> San Dimas History Report Extravaganza!</h1>
  </div>
	<div class="grid-item fullwidth">
    <img src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/748476/1473886495_1-cropped.png' alt=''>
  </div>
	<div class="grid-item content">
    <p>Curabitur blandit tempus porttitor. Etiam porta sem malesuada magna mollis euismod. Nullam quis risus eget urna mollis ornare vel eu leo. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>

<p>Maecenas faucibus mollis interdum. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Aenean lacinia bibendum nulla sed consectetur. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>

<p>Cras mattis consectetur purus sit amet fermentum. Sed posuere consectetur est at lobortis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
    
  </div>
</div>
              
            
!

CSS

              
                // IE Specific
.grid-container > * {
  margin: 10px;
}

@supports (display: grid) {
  .grid-container {
    display: grid;
    grid-template-columns:
      [body-start]
      minmax(10px, 1fr)
      [container-start]
      minmax(300px, 1280px)
      [container-end]
      minmax(10px, 1fr)
      [body-end];
    grid-template-rows: auto;
    grid-gap: 10px;
  }
  
  .grid-container > * {
    margin: unset;
  }
}

.content {
  grid-column: container-start / container-end;
}

.fullwidth {
  grid-column: body-start / body-end;
}

/* 
 * Presentation Only. 
 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  font-size: calc(14px + (26 - 14) * ((100vw - 300px) / (1600 - 300)));
}

.grid-container {
  height: 100vh;
  margin: 1em 0;

  img {
    width: 100%;
  }
}

h1 {
  font-family: 'Bungee Shade', cursive;
  text-align: center;
}

p {
  font-size: 1.2rem;
  margin: 0 0 1em 0;
}
              
            
!

JS

              
                /**
 * 3 column grid.
 **/
              
            
!
999px

Console