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-fluid blog-grid
            gw gw--full">
    <div class="hero g one-whole tablet-one-half">
        <div class="hero-border">
            <div class="hero-text">Creative Blog Title</div>
        </div>
    </div>
    <div class="content blog g one-whole tablet-one-half gw gw--full">
        <div class="blog-title g one-whole desk-two-thirds">
            <h1>Creative Blog Title</h1>
            <span>This is a small headline to go under the title.</span>
        </div>
        <div class="blog-content g one-whole tablet-five-sixths desk-three-quarters">
            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris condimentum quam in tellus dignissim, sit amet tempus sapien elementum. Ut luctus id est sed vehicula. Nullam malesuada faucibus sapien, eget fermentum erat accumsan posuere. Nullam venenatis tempor posuere. Vivamus non felis nec nulla tempus blandit. Vestibulum ultrices eros nec nunc sagittis ultrices. Praesent at feugiat quam. Fusce elementum consectetur lorem a ultricies.</p>
            <p>Vestibulum vel nulla mattis, faucibus urna quis, molestie dui. Nulla dui lorem, finibus et consequat vel, tempor eget justo. Donec porta metus eu erat efficitur, vel viverra justo aliquam. Proin nec augue id lorem varius pharetra sit amet vitae nibh. Aenean vitae purus orci. In condimentum nibh vestibulum dui ullamcorper, porttitor egestas dui mattis. Suspendisse dignissim nulla elit, at ultricies urna tincidunt quis.</p>
        </div>
    </div>
</div>
            
          
!
            
              body {
  background: #f7f7f7;
}

body p {
  line-height: 1.6rem;
}
.container {
  padding: 0 !important;
}
.nav {
  position: absolute !important;
}
.hero {
  height: 100vh;
  background: url("https://gratisography.com/thumbnails/gratisography-313-thumbnail.jpg")
    50% no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .hero-border {
  height: 80%;
  width: 80%;
  border: #f7f7f7 solid 1.6rem;
  display: flex;
  align-items: center;
  text-align: center;
}
.hero .hero-border .hero-text {
  display: none;
  color: #f7f7f7;
  text-align: center;
  font-size: 3rem;
  font-weight: bold;
}
@media screen and (max-width: 47.99em) {
  .hero .hero-border .hero-text {
    display: block;
  }
}
.blog.gw {
  align-items: end;
  height: 100vh;
  overflow: scroll;
}
.blog-title {
  grid-column-end: 13 !important;
  text-align: center;
  padding-right: 2rem;
}
@media screen and (min-width: 48em) {
  .blog-title {
    text-align: right;
  }
}
@media screen and (max-width: 47.99em) {
  .blog-title {
    margin-top: 2rem;
    opacity: 0.7;
  }
}
.blog-title h1 {
  font-size: 3rem;
  margin-bottom: 0;
  font-weight: bold;
}
@media screen and (max-width: 47.99em) {
  .blog-title h1 {
    display: none;
  }
}
@media screen and (min-width: 75em) {
  .blog-title h1 {
    font-size: 4rem;
  }
}
.blog-title span {
  font-size: 1.6rem;
  opacity: 0.9;
}
.blog-content {
  text-align: justify;
  grid-row: span 2;
  margin-top: 2rem;
}
@media screen and (min-width: 48em) {
  .blog-content {
    margin: 0 2rem;
  }
}
.blog-content p:first-of-type:first-letter {
  font-size: 50px;
  font-weight: bold;
  margin: -5px 10px -10px 0;
  line-height: 50px;
  float: left;
}

            
          
!
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.

Console