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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <!-- Note the z-index on row and the gradient:after pseudo class. This allows the text to appear above the gradient background as they are written on the same level in the DOM tree. -->

<section class="section-content gradient">
  <div class="row">
    <div class="section-container">
    <h1 class="title">Introducing ARKit</h1>
    <p class="typography">iOS 11 introduces ARKit, a new framework that allows you to easily create unparalleled augmented reality experiences for iPhone and iPad. By blending digital objects and information with the environment around you, ARKit takes apps beyond the screen, freeing them to interact with the real world in entirely new ways.</p>
    </div>
  </div>
</section>
              
            
!

CSS

              
                .typography {
  text-align:center;
  font-size:20px;
}

.title {
  text-align:center;
  font-size:32px;
}

.row {
  position:relative;
  display:block;
  width:80%;
  margin:0 auto;
  top:50%;
  transform:translateY(-50%);
  z-index:1;
}
.section-container {
  position:relative;
  display:block;
  margin:0 auto;
  width:100%;
  
}
.section-content {
  width:100%;
  position:relative;
  display:block;
  height:100vh;
  z-index:1;
}

.gradient {
      background: #D3F4F8;
    background: -moz-linear-gradient(225deg, #F6DCD9 0%, #d4d2fa 100%);
    background: -webkit-linear-gradient(225deg, #F6DCD9 0%, #d4d2fa 100%);
    background: linear-gradient(225deg, #F6DCD9 0%, #d4d2fa 100%);
}

.gradient:before {
      background: -webkit-linear-gradient(135deg, rgba(246, 210, 205, 1), rgba(246, 210, 205, 0));
    background: linear-gradient(135deg, rgba(246, 210, 205, 1), rgba(246, 210, 205, 0));
  z-index:0;
  top:0;
  left:0;
  content:'';
  position:absolute;
  width:100%;
  height:100%;
}
.gradient:after {
      background: -webkit-linear-gradient(135deg, rgba(191, 242, 248, 0), rgba(191, 242, 248, 1));
    background: linear-gradient(135deg, rgba(191, 242, 248, 0), rgba(191, 242, 248, 1));
  z-index: 0;
  bottom: 0;
  right: 0;
  content:'';
  position:absolute;
  width:100%;
  height:100%;
}
              
            
!

JS

              
                
              
            
!
999px

Console