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

              
                <p class="modernist">Modernist</p>
<p class="fifties">Lemonade</p>
<p class="sport">Superbowl</p>
<p class="atari">Atari 2600</p>
<p class="ninetyfive">Spykids 3d</p>
              
            
!

CSS

              
                @import "compass/css3";

@import url(https://fonts.googleapis.com/css?family=Press+Start+2P);

@import url(https://fonts.googleapis.com/css?family=Lobster+Two:700italic);
* {
  @include box-sizing(border-box);
}

p {
  padding: 2em 2rem;
  text-align: center;
}
.atari {
  font-family: 'press start 2p';
  font-size: 3rem;
  background: rgb(30, 30, 40);
  color: rgba(white, .9);
  text-shadow: 0 .1em 0 #000;
  $b: rgba(black, .3);
  @include background-image(linear-gradient($b 0%, $b 50%, transparent 50%, transparent 100%));
  background-repeat: repeat;
  background-size: 20px 10px;
}

$blue: rgb(30, 130, 230);
.fifties {
  font-family: lobster two;
  background: $blue;
  color: white;
  text-shadow: 0 8px 0 darken($blue, 9);
  font-size: 8rem;
  padding: 1em 2rem;
}

$red: rgba(250, 10, 10, .5);
$blue: rgba(10, 10, 250, .5);
.ninetyfive {
  font-family: sans-serif;
  font-weight: bold;
  font-size: 3rem;
  color: rgba(black, .8);
  text-shadow: -.1em .1em 0 $red, .1em -.1em 0 $blue;
}

@import url(https://fonts.googleapis.com/css?family=Six+Caps);

.modernist {
  font-family: six caps;
  text-transform: uppercase;
  background: #FF3743;
  background-size: 100%;
  color: white;
  letter-spacing: .2em;
  font-size: 6rem;
  text-shadow: .07em .07em 0 #FF3743, .1em .1em 0 white;
}

@import url(https://fonts.googleapis.com/css?family=Oswald);
.sport {
  background-image: url(https://25.media.tumblr.com/db77c4c7f0322d74f788abe496249b77/tumblr_mrnnfhrC2g1sfie3io1_1280.jpg);
  background-size: 100%;
  background-position: center;
  font-size: 5rem;
  padding: 2em 2rem;
  font-family: oswald;
  color: white;

}
              
            
!

JS

              
                
              
            
!
999px

Console