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

              
                <main>
  <h1>Person of Interest</h1>
  <div class="panel-wrapper">
    <h2>Sameen Shaw</h2>
    <p>Also known as Indigo Five Alpha, Dr. Sameen Shaw or simply Shaw, is a physician and a former operative for the U.S. Army Intelligence Support Activity. Prior to joining the team Shaw was part of an operation known as Catalyst Indigo, responsible for acting on relevant list intelligence delivered by the Machine, which she knew only as "Research". </p>
  </div>

  <div class="panel-wrapper">
    <h2>Samantha Groves</h2>
    <p>A highly intelligent computer hacker and former contract killer known by her hacker name "Root". She has a special relationship with The Machine and is the only one to be in frequent and direct contact, acting as The Machine's 'Analog Interface'. When the government begins to doubt The Machine's information, Root takes on both the relevant numbers and the task of bringing Samaritan down.</p>
  </div>
</main>
              
            
!

CSS

              
                @import 'susy';
@import url(https://fonts.googleapis.com/css?family=Happy+Monkey|Lemon);
html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  font-family: "Happy Monkey";
  line-height: 1.5;
  font-size: 75%;
}

main {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  background: silver;
  border: 2px solid black;
  padding: 0 1em;
  @media screen and (max-width: 599px) {
    display: contents;
  }
  &::after {
    clear: both;
    content: '';
    display: block;
  }
}

h1,
h2 {
  font-family: "Lemon";
}

.panel-wrapper {
  padding: 1em;
  border: 2px solid grey;
  margin-bottom: 1em;
  background: whitesmoke;
  @media screen and (min-width: 600px) {
    @include span(6 of 12);
    &:nth-child(2n) {
      @include last;
    }
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console