cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-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.

  <span class="underline">Tricky handgloves</span>

  <span class="underline underline--dotted">Dotted underline</span>

  <span class="underline underline--blue">Look at me wrapping across these lines of text!</span>

              .underline {
  border-bottom: 2px solid currentColor;

.underline--blue {
  border-bottom-color: blue;

.underline--dotted {
  border-bottom: 3px red dashed;

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

html {
  $square-color: #eee;
  $square-size: 8px;
  line-height: 1;
  padding: 20px;
    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: 48px;

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

p {
  line-height: 1;
  margin-bottom: 30px;
  margin-top: 0;
  &:last-child {
    margin-bottom: 0;

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


Loading ..................