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

              
                <div class="outer-box-frame">
  <h1>Late Summer Flora</h1>
  <h2>Artist's Point Mount Baker National Reserve</h2>
  <img src="https://madronaweb.com/assets/img/artists-point-late-summer-flora.jpg" alt="plants on table top mountain" class="center-image">
  <p>Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.</p>
  <p>Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.</p>
</div>
              
            
!

CSS

              
                @media screen and (min-width: 50rem) {
  .outer-box-frame {
 		border: 1rem solid #C1A2CC;
	  margin: 5rem auto ; /*the auto for the left/right keeps the page centered*/
		padding: 5rem;
    max-width: 38rem; // min-width - 2(padding + border)
  }
  body {
    background-color: #6C8C4C;
  }
}
.outer-box-frame {
    background-color: #fff;
  }

p {
  padding: 3rem;
  letter-spacing: 0.1rem;
  line-height: 1.75;
  &:last-of-type {
    padding-top: 0;
  }
}

h1, h2 {
  padding-left: 3rem;
  letter-spacing: 0.25rem;
  font-weight: 700;
}

h1 {
  padding-bottom: 0.5rem;
  padding-top: 1rem;
}

h2 {
  letter-spacing: 0.2rem;
}

.center-image {
  padding-top: 2.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

div, p {
  font-family: Helvetica;
  text-rendering: optimizeLegibility;
}
              
            
!

JS

              
                
              
            
!
999px

Console