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.


                <div class="wrapper">
  <div class="grid-block medium-push-1 img-container"><img src="" alt="" /></div>
  <div class="grid-block align-middle medium-pull-1 card-container">
    <div class="card">
      <div class="card-section">
        <h4>Lonely Planet's Where to Go When
          Lonely Planet's Where to Go When</h4>

        <p>Welcome to the ultimate trip planner, which contain recommended destinations for each month of the year, embracing everything from culture-rich city breaks to wildlife-watching expeditions.</p>
        <a href="#">Buy the book ></a>


                body {
  margin: 40px;

.wrapper { 
  display: grid; 
  grid-template-columns: 6fr 6fr; 
  grid-template-rows: 1fr;
  @media screen and (max-width: 775px) {
    grid-template-columns: 1fr;

.img-container {
  z-index: 10;

.card-container {
  z-index: 20;

.align-middle {
  align-self: center;

.card {
  margin-bottom: 0;
  font-size: 12px;

h4 {
  font-size: 22px;

@media print, screen and (min-width: 815px) {
  .medium-push-1 {
    position: relative;
    left: 8.33333%; 
  .medium-pull-1 {
    position: relative;
    left: -8.33333%; 

.no-grid-warning {
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  color: red;
  background-color: #fff;
  padding: 20px;


                if (Modernizr.testAllProps('gridRowGap') === false){
  $('body').append("<div class='no-grid-warning'>Your browser does not support CSS-Grid - this demo requires CSS-grid to function properly</div>");