cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

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.

            
              <main>
  <section class="sec1">
    <div>
  <h1>Ordinary,</h1>
  <p>be a little less of it.</p>
      </div>
    </section>
<section class="sec2">
  <article>
  <h2>Title</h2>  
 <p>Morbi blandit, <a href="#">magna</a> non fermentum congue, arcu nibh egestas velit, tempor elementum justo odio a ipsum. Integer dictum odio eu dapibus condimentum. Proin pharetra lectus a purus sollicitudin hendrerit. Aliquam erat volutpat. Morbi cursus euismod posuere. Phasellus non porta velit. Donec imperdiet malesuada malesuada.</p>  
    <p> Duis sodales nisi a lacus sagittis tincidunt. Praesent a risus malesuada ligula condimentum dictum vel sit amet leo.Vestibulum maximus nibh nec cursus iaculis. Fusce vulputate magna vitae nisi ornare blandit. Sed sagittis sagittis fringilla. Suspendisse cursus lorem metus, eget venenatis felis porttitor a. Praesent ultricies lectus a odio rutrum, ut convallis velit porta.</p> 
   
    </article>
  <article>
    <h2>Title</h2>
     <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque accumsan euismod mauris, eget ornare erat luctus at. Etiam quis enim sed orci eleifend condimentum. Quisque pulvinar libero ante, non faucibus neque suscipit non.</p> 
    <p>Sed euismod lectus at dolor auctor efficitur. Aenean dignissim, elit sed facilisis lacinia, velit sem tincidunt mi, ultricies mattis nibh sapien sit amet arcu. <a href="http://store.daniellemlbastien.com">Maecenas a dui ex.</a> Proin at neque accumsan, convallis felis sit amet, elementum leo. Sed nisi tellus, blandit in hendrerit eu, rhoncus vitae nunc. Proin viverra egestas quam sed interdum.</p>
    </article>
 </section>
</main>
            
          
!
            
              $white: #ffffff;
$blue: #27cbf4;
$purple: #c798f9;
$green: #9dd53a;

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 16pt; }

body {
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  background-color: darken($white, 5%);
}

a {
  color: $blue;
  &:visited { 
    color:  $purple;
  }
  &:hover, 
  &:active {
    color: $green;
  }
  
}

.sec1 {
  display: flex;
  text-align: center;
  background-color: $green;
  height: 50vh;
  
  div {
    margin: 4em auto;
  }
}

.sec2 {
  position: absolute;
  top: 10em;
  left: 0;
  right: 0;
  background-color: $white;
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1em;
  article {
   padding: 2em 1em;
    
    h2 {
      border-bottom: 5px solid $green;
      margin-bottom: 1em;
    }
    
    p {
      font-size: .9em;
      line-height: 1.5;
      margin-bottom: .75em;
    }
  }
}
            
          
!
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