cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


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.

              <h1 class="red underline">Example heading</h1>

  At some point in this demo paragraph, you’re going to run into some underlined text. Look at it all important-like. It’s supposed to be wrapping also. Very important.
  <span class="underline">Wait — is this the underlined text right now? Am I, this here string of text, underlined and wrapping? Wow, what an honor.</span>
              .red {
  color: red;

.underline {
  text-decoration: underline;

// ----- Unrelated ----- //

html {
  $square-color: #f4f4f4;
  $square-size: 8px;
  line-height: 1;
    linear-gradient(45deg, $square-color 25%, transparent 25%, transparent 75%, $square-color 75%, $square-color), 
    linear-gradient(45deg, $square-color 25%, transparent 25%, transparent 75%, $square-color 75%, $square-color);
  background-position: 0 0, $square-size $square-size;
  background-size: ($square-size * 2) ($square-size * 2);
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 19px;
  line-height: 1.4;
  padding: 20px;

body {
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;

p {
  margin: 0;

h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 10px;
  margin-top: 0;
Loading ..................