css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="container">
  <div class="wrap">
    <div class="content">
      <h1>Lorem Ipsum</h1>
      <p>I don't think anybody knows it was Russia that wrote Lorem Ipsum, but I don't know, maybe it was. It could be Russia, but it could also be China. It could also be lots of other people. It also could be some wordsmith sitting on their bed that weights 400 pounds. Ok? Lorem Ipsum best not make any more threats to your website. It will be met with fire and fury like the world has never seen.</p>
      <p>I have a 10 year old son. He has words. He is so good with these words it's unbelievable. I think the only difference between me and the other placeholder text is that I’m more honest and my words are more beautiful. Does everybody know that pig named Lorem Ipsum? She's a disgusting pig, right?</p>
      <p>Despite the constant negative ipsum covfefe.</p>
    </div>
    <aside class="sidebar">
      <h2>Dolor sit</h2>
      <p>Lorem Ipsum best not make any more threats to your website. It will be met with fire and fury like the world has never seen. You're telling the enemy exactly what you're going to do. No wonder you've been fighting Lorem Ipsum your entire adult life. The other thing with Lorem Ipsum is that you have to take out its family.</p>
      <p>This placeholder text is gonna be HUGE. You’re disgusting. Does everybody know that pig named Lorem Ipsum? She's a disgusting pig, right?</p>
    <aside>
  </div>
</div>
            
          
!
            
              @mixin grid($gutter-vertical: 1rem, $gutter-horizontal: 1rem) {
  display: flex;
  flex-wrap: wrap;

  @if $gutter-vertical > 0 {
    margin-top: -$gutter-vertical;
    
    > * {
      padding-top: $gutter-vertical;
    }
  }
  @if $gutter-horizontal > 0 {
    margin-left: -$gutter-horizontal;
    
    > * {
      padding-left: $gutter-horizontal;
    }
  }
}

@mixin grid__item($size: 12/12) {
  width: $size * 100%;
  flex-grow: 1;
  box-sizing: border-box;
}

.wrap {
  padding-right: 1rem;
  padding-left: 1rem;

  @media (min-width: 42em) {
    @include grid();
  }
}

.content {
  @media (min-width: 42em) {
    @include grid__item(8/12);
  }
}

.sidebar {
  @media (min-width: 42em) {
    @include grid__item(4/12);
  }
}

.container {
  max-width: 64rem;
  margin-right: auto;
  margin-left: auto;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console