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.

            
              
<header class="hero">
  <div class="hero__heading">
  <h1 class="hero__heading-header">Share nature with us</h1>
  <h2 class="hero__heading-tagline">The best articles & a green lifestyle</h2>
    </div>
</header>

<div id="container">
<div id="side">&nbsp;</div>
<div id="content-container">
  <div class="main">
    <aside class="aside"> 
  <div class="info-box fa-5x"> 
    <span class="fa-layers fa-fw shadow">
        <i class="fas fa-circle"></i>
        <i class="fa-inverse fas fa-shopping-bag" data-fa-transform="shrink-8"></i>
    </span>
  </div>
    </aside>
    <article class="article">
      <h1 class="article__heading">Shopping bags</h1>
      <h2 class="article__tagline">From plastic to cotton</h2>
      <div class="article__body">
      <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure iste mollitia autem voluptates earum, optio doloremque ipsam voluptatum blanditiis consequatur! Ipsum veniam quas aliquid fugiat omnis nostrum accusantium eligendi esse! </p>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure iste mollitia autem voluptates earum, optio doloremque ipsam voluptatum blanditiis consequatur! Ipsum veniam quas aliquid fugiat omnis nostrum accusantium eligendi esse! </p>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure iste mollitia autem voluptates earum, optio doloremque ipsam voluptatum blanditiis consequatur! Ipsum veniam quas aliquid fugiat omnis nostrum accusantium eligendi esse! </p>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure iste mollitia autem voluptates earum, optio doloremque ipsam voluptatum blanditiis consequatur! Ipsum veniam quas aliquid fugiat omnis nostrum accusantium eligendi esse! </p>
 </div>
</article>  
</div>
  
  <div class="main">
    <aside class="aside"> 
  <div class="info-box fa-5x"> 
    <span class="fa-layers fa-fw shadow">
        <i class="fas fa-circle"></i>
        <i class="fa-inverse fas fa-tree-alt" data-fa-transform="shrink-6"></i>
    </span>
  </div>
    </aside>
    
    <article class="article">
      <h1 class="article__heading">Trees are awesome!</h1>
      <h2 class="article__tagline">You should hug them. No Really, try it.</h2>
      <div class="article__body">
      <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure iste mollitia autem voluptates earum, optio doloremque ipsam voluptatum blanditiis consequatur! Ipsum veniam quas aliquid fugiat omnis nostrum accusantium eligendi esse! </p>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure iste mollitia autem voluptates earum, optio doloremque ipsam voluptatum blanditiis consequatur! Ipsum veniam quas aliquid fugiat omnis nostrum accusantium eligendi esse! </p>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure iste mollitia autem voluptates earum, optio doloremque ipsam voluptatum blanditiis consequatur! Ipsum veniam quas aliquid fugiat omnis nostrum accusantium eligendi esse! </p>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure iste mollitia autem voluptates earum, optio doloremque ipsam voluptatum blanditiis consequatur! Ipsum veniam quas aliquid fugiat omnis nostrum accusantium eligendi esse! </p>
      </div>
        </article>  
  </div>
 <div class="main">
    <aside class="aside"> 
  <div class="info-box fa-5x"> 
    <span class="fa-layers fa-fw shadow">
        <i class="fas fa-circle"></i>
        <i class="fa-inverse fas fa-cloud" data-fa-transform="shrink-8"></i>
    </span>
  </div>
    </aside>
    
    <article class="article">
      <h1 class="article__heading">Summers are getting warmer</h1>
      <h2 class="article__tagline">but they are also wetter then ever</h2>
      <div class="article__body">
      <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure iste mollitia autem voluptates earum, optio doloremque ipsam voluptatum blanditiis consequatur! Ipsum veniam quas aliquid fugiat omnis nostrum accusantium eligendi esse! </p>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure iste mollitia autem voluptates earum, optio doloremque ipsam voluptatum blanditiis consequatur! Ipsum veniam quas aliquid fugiat omnis nostrum accusantium eligendi esse! </p>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure iste mollitia autem voluptates earum, optio doloremque ipsam voluptatum blanditiis consequatur! Ipsum veniam quas aliquid fugiat omnis nostrum accusantium eligendi esse! </p>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure iste mollitia autem voluptates earum, optio doloremque ipsam voluptatum blanditiis consequatur! Ipsum veniam quas aliquid fugiat omnis nostrum accusantium eligendi esse! </p>
      </div>
        </article>  
</div>
  <div class="main">
    <aside class="aside"> 
  <div class="info-box fa-5x"> 
    <span class="fa-layers fa-fw shadow">
        <i class="fas fa-circle"></i>
        <i class="fa-inverse fas fa-paw" data-fa-transform="shrink-7.5"></i>
    </span>
  </div>
    </aside>
    
    <article class="article">
      <h1 class="article__heading">We love pets</h1>
      <h2 class="article__tagline">But what is their footprint?</h2>
      <div class="article__body">
      <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure iste mollitia autem voluptates earum, optio doloremque ipsam voluptatum blanditiis consequatur! Ipsum veniam quas aliquid fugiat omnis nostrum accusantium eligendi esse! </p>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure iste mollitia autem voluptates earum, optio doloremque ipsam voluptatum blanditiis consequatur! Ipsum veniam quas aliquid fugiat omnis nostrum accusantium eligendi esse! </p>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure iste mollitia autem voluptates earum, optio doloremque ipsam voluptatum blanditiis consequatur! Ipsum veniam quas aliquid fugiat omnis nostrum accusantium eligendi esse! </p>
            <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure iste mollitia autem voluptates earum, optio doloremque ipsam voluptatum blanditiis consequatur! Ipsum veniam quas aliquid fugiat omnis nostrum accusantium eligendi esse! </p>
      </div>
        </article>  
    </div> 
  </div>
</div>

            
          
!
            
              :root {
  --color-primary: #4B66B0;
}

body {
/* Background from Hero Patterns   */
  background-color: #ffffff;
background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23945bf0' fill-opacity='0.37'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

#container {
  display: flex;
}

#side {
  display: flex;
  flex-basis: 6px;
  flex-shrink: 0;
  background: #654ea3; 
  background: -webkit-linear-gradient(to top, #654ea3, #eaafc8); 
  background: linear-gradient(to top, #654ea3, #eaafc8);
}

#content-container {
 display: flex; 
  flex: 1;
  flex-direction: row;
  flex-wrap: wrap;
}

.hero {
  display: flex;
  position: relative;
  height: 20vh;
  min-height: 200px;
  text-align: center;
  background: transparent;
  border-top: 6px solid transparent;
  border-left: 6px solid transparent;
  -moz-border-image: -moz-linear-gradient(to left, #654ea3, #eaafc8);
  -webkit-border-image: -webkit-linear-gradient(to left, #654ea3, #eaafc8);
  border-image: linear-gradient(to left, #654ea3, #eaafc8);
  border-image-slice: 1;
  justify-content: center;
  align-items: center;
}

.hero__heading { 
  font-family: 'Abril Fatface', cursive;
  position: absolute;
  flex: 1;
  background: white;
  border: 1px solid #d6d6d6;
  border-radius: 3px;
  box-shadow: -3px 3px 0px #bababa;
  padding: 1rem 2rem;
}

.hero__heading-header{
  font-size: 2.4rem; 
  letter-spacing: 7px;
  margin-bottom: 0;
  background-image: linear-gradient(to left, #654ea3, #eaafc8);
  -webkit-background-clip : text;
  background-clip : text;
  color: transparent;
}

.hero__heading-tagline{
  font-size: 1.6rem; 
  letter-spacing: 3px;
  margin-top: 0;
  background-image: linear-gradient(to left, #654ea3, #eaafc8);
  -webkit-background-clip : text;
  background-clip : text;
  color: transparent;
}

.main {
  display: flex;
  flex: 1;
  flex-basis: 650px;
  flex-direction: row;
  margin-bottom: 1.3rem;
}

.info-box {
  position: -webkit-sticky;
  position: sticky;
  top: -10px;
  padding: 0 1.6rem;
}

.aside {
  background: transparent;
  color: var(--color-primary);
}
.article {
  color: white;
  background: var(--color-primary);
  padding: 1.5rem 3rem;
  border: 1px solid #d6d6d6;
  border-right: none;
  border-radius: 3px;
  border-top-right-radius:0;
  box-shadow: -3px 3px 0px #bababa;
}

.article__body {
  columns: 300px 2;
  column-gap: 4em;
  margin-top: 1.4rem;
}

@supports (initial-letter: 4) or (-webkit-initial-letter: 4) {
  .article__body::first-letter{
  -webkit-initial-letter: 4;
  initial-letter: 4;
  font-weight: 200;
  margin-right: .7rem;
  }
}

.article__heading {
  display: inline-block;
  text-transform: uppercase;
  box-shadow: 0px 2px 0px white;
  font-weight: 300;
  font-size: 2.2rem;
  letter-spacing: 5px;
}

.article__tagline {
  text-transform: uppercase;
  font-weight: 200;
  font-size: 1.4rem;
}

.shadow {
  -webkit-filter: drop-shadow( -3px 3px 0px #bababa); 
  filter: drop-shadow( -3px 3px 0px #bababa);
}

footer {
  background: white;
  height: 20vh;
  min-height: 200px;
}
            
          
!
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