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.

            
              <main>
  <header>Hello</header>
  <nav><ul><li>item</li><li>item</li><li>item</li><li>item</li></ul></nav>
  <h1 class="page-header"><span>Maybe this is a separate bit</span>this is the heading and it is quite long and continues to write into this area of the heading.</h1>
  <section>	<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam nec blandit nulla. Pellentesque magna nisl, malesuada ut vestibulum quis, vehicula sit amet nisi. Duis pulvinar ipsum at sollicitudin fermentum. Morbi ullamcorper quam sodales enim condimentum, tincidunt laoreet felis efficitur. Maecenas ac diam non nibh bibendum tincidunt ut a nisi. Proin lobortis augue sed posuere iaculis. In id fringilla ipsum. Aliquam erat volutpat. Aliquam erat volutpat. Nulla condimentum enim a mauris finibus mollis. Mauris orci arcu, ultrices non fermentum at, convallis vitae urna. Nunc vulputate lorem in ante hendrerit, malesuada tristique felis sollicitudin. Nunc quis est a libero tincidunt iaculis in in sem. Donec sapien velit, viverra in egestas eu, blandit ac nulla.
</p>
<p>
Proin facilisis a magna eget scelerisque. Maecenas sed mauris ut dolor interdum lacinia. Proin a facilisis leo, in porttitor neque. Praesent vel tortor id lacus placerat commodo. Cras vulputate maximus porttitor. Maecenas vitae sem ut ex consequat pulvinar eget ac eros. Aenean massa lorem, suscipit pulvinar vulputate nec, rutrum ut ante. Interdum et malesuada fames ac ante ipsum primis in faucibus. Ut maximus bibendum velit ut laoreet. Nullam blandit tempor purus in accumsan. Nullam in leo odio. Mauris malesuada velit at tortor sollicitudin tristique. Suspendisse eget varius libero. Nullam id massa quam.
</p>
<p>
Curabitur congue, odio in aliquet fermentum, ligula ligula feugiat risus, quis pharetra leo diam vel leo. Pellentesque dui neque, porta id efficitur sed, rutrum id purus. Nulla facilisi. Vivamus lobortis auctor urna, quis cursus massa auctor vel. Nam non dui eu nisl ultricies ultricies. In mattis est et diam sagittis fringilla. Aliquam facilisis cursus sollicitudin. Praesent sed risus urna. Duis vehicula consectetur sem quis molestie. Integer condimentum sed augue vitae dapibus. Quisque sodales condimentum ligula, vel bibendum lorem feugiat at. Cras laoreet, dolor sit amet malesuada dignissim, tellus dui tempus ligula, volutpat sodales justo neque vel lacus. Vivamus mauris odio, pellentesque eu pulvinar ut, sodales sit amet elit. Phasellus dolor mi, condimentum a rhoncus non, tempor ut lacus. Duis sed metus et lorem sodales pretium.
</p>
<p>
Phasellus lobortis et justo eu sodales. Nulla tempor quam ac erat consequat ornare. Aenean facilisis eros turpis, id ultricies massa mattis id. Nunc quis libero quis enim iaculis facilisis. Mauris euismod tellus nec imperdiet placerat. Fusce id luctus eros, vehicula lobortis enim. Suspendisse id velit lacus. Mauris at interdum elit. Aliquam non tincidunt arcu, nec eleifend tellus. Donec ac massa mauris. Mauris tempor augue ut enim rhoncus molestie. Cras non ligula viverra, rhoncus mauris id, convallis neque. Sed consequat tempor dui, sed blandit magna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla sed vehicula velit, eu gravida velit. Nulla nisl urna, pulvinar tincidunt mattis eu, auctor vitae lacus.
</p></section>
  <footer>footer</footer>
</main>
            
          
!
            
              body {font-family:rubik, 'helvetica neue', sans-serif; line-height:1.45;}
p {margin: 0;padding: 0;}
p+p {text-indent: 1em;}
$standardgrid: 1fr 1fr 1fr 1fr 1fr 1fr;
$gutter: 10px;
main {
  display: grid;
  grid-template-columns: $standardgrid;
  grid-template-rows: auto;
  grid-template-areas: "header header header header header header"
    "nav nav nav nav nav nav"
    "pg-header pg-header section section section ."
    "footer footer footer footer footer footer";
  grid-column-gap: $gutter;
  grid-row-gap: $gutter;
  max-width: 1000px;
  margin: 3em auto;
}

@mixin createsubgrid($grid,$thisgutter) {
  display: grid;
  grid-template-columns: $grid;
  grid-template-rows: auto;
  grid-column-gap: $thisgutter;
  grid-row-gap: $thisgutter;
}

header {
  grid-area: header;
  border-top:1px solid #222;
  padding-top: 10px;
  padding-bottom: 30px; font-weight:bold;
}
nav {
  grid-area: nav;
  border-top:1px solid #ddd;
  padding: 10px 0;
}

h1.page-header {grid-area:pg-header; line-height:1.2;}
h1.page-header span {display:block; text-transform:uppercase; font-size: 0.5em; font-weight:normal; color: #555; margin-bottom: 10px;}

nav ul {
  @include createsubgrid($standardgrid, $gutter);
  grid-auto-flow: row;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

section {
  grid-area: section;
  padding: 30px 0;
}
footer {
  grid-area: footer;
  margin-top: 30px;
  padding-top: 10px; border-top:1px solid #ddd;
}

            
          
!
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