Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="grid-container main">
  <div class="grid-x">
    <div class="cell medium-8">
      <h2>
        This is a text
      </h2>
      <p>
        Lorem ipsum dolor sit amet consectetur adipisicing elit. Deserunt eos odio corporis voluptate accusamus tempore eum. Distinctio quae odio nihil mollitia culpa corrupti nisi placeat dignissimos, at dolor quis debitis.
      </p>
    </div>
    <div class="cell small-10 medium-4  expertise-section-right">
      <div class="expertise-image">
        <div class="background-video hide-for-small-only">
          <video src="https://player.vimeo.com/external/478247411.sd.mp4?s=908b276285cd8792b5d7614afcac51f040daac07&profile_id=164" autoplay muted loop playsinline aria-hidden="true"></video>
        </div>
      </div>
    </div>
  
  </div>
</div>
<div class="trusted-partnerships">
  <div class="grid-container">
    <div class="grid-x overflow-hidden">
      <div class="cell medium-6 medium-offset-1 trusted-partnerships-header left-right delay-2">
        <h2 class="heading h2">
          Trusted partnerships
        </h2>
        <p class="big-copy">
          Partnership is at the heart of everything UNDP does. We offer a nearly universal presence across the world. We are determined to mobilize the means to implement the 2030 Agenda through a revitalized Global Partnership for Sustainable Development, with a focus on the poorest and most vulnerable.
        </p>
        <button class="btn">
          Join Us
        </button>
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                .main{
  margin-top: 300px;
}

.trusted-partnerships {
    padding: 240px 0 170px;
    background-color: white;

    

    &.background-color{
        background: #F7F7F7;
        transition: background-color 0.5s ease;
    }

    .big-copy {
        margin-top: 90px;
    }

    .btn {
        margin-top: 68px;
      border: 1px solid red;
      padding: 10px 20px
    }
  
  h2, p{
    color: red;
  }

    
}

              
            
!

JS

              
                
              
            
!
999px

Console