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.

              <!-- Quick demo for a Medium article -->
<!-- Link to article: -->
<!-- Fonts via Goole Fonts https://fonts.google.com -->
<article class="card">
<h2 class="card__category">Travel Guide</h2>
<h1 class="card__title">Ideal Summer Escape</h1>
<p class="card__description">Idyllic getaway just a short distance from Omaha</p>

<article class="card">
<h2 class="card__category">Glamping</h2>
<h1 class="card__title">Best Hikes in Maine</h1>
<p class="card__description">We explored Vacationland's happiest trails</p>

<article class="card">
<h2 class="card__category">Brazillian Typefaces</h2>
<h1 class="card__title">Rio’s Hottest Fonts</h1>
<p class="card__description">You won't believe these alphabets</p>
              $malibu: #5CA7E5;
$brisk: #B1C4D2;
$beige: #FCFCF7;
$sage: #ECF0EF;

body {
  background-color: $sage;
  color: $brisk;
  font-family: 'PT Sans Caption', sans-serif;

.card {
  border-bottom: 1px solid $sage;
  margin: 0 auto;
  width: 656px - 84;
  background-color: $beige;
  margin: 0 auto;
  padding: 40px 42px 46px 42px;
  text-align: center;
  &__category {
    margin: 0 0 4px 0;
    font-family: 'PT Serif', serif;
    font-size: 32px;

  &__title {
    margin: 0 0 5px 0;
    color: $malibu;
    font-family: 'Fjalla One', sans-serif;
    font-size: 65px;
    text-transform: uppercase;
    font-weight: normal;

  &__description {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: .05em;

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 ..................