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>H1 Heading</h1>
<p>Paragraph text praesent commodo cursus magna, vel scelerisque nisl consectetur et. Cras mattis consectetur purus sit amet fermentum. Donec id elit non mi porta gravida at eget metus. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
              /* Breakpoints */

$mama-bear: 1100px;
$baby-bear: 650px;

/* Media Queries */

@mixin bp($point) {
    @if $point == mama-bear {
        @media (max-width: $mama-bear) { @content; }
    @else if $point == baby-bear {
        @media (max-width: $baby-bear)  { @content; }

body { 
  font-family: helvetica, arial, sans-serif;
  background-color: #ecedf3; 
  color: #64697a; 

/* Master Fader */

html {
    font-size: 100%;

    @include bp(mama-bear) { font-size: 87.5%; }

    @include bp(baby-bear) { font-size: 75%; }

/* Stuff I'll Wire to My Master Fader */

header { 
    height: 5rem; 
    margin-bottom: 3.75rem; 
    background-color: #46d2ca;

h1 { 
    margin: 0 auto;
    width: 60%;
    text-align: center;
    font-size: 1.75rem; 
    margin-bottom: 1.25rem; 

p { 
    margin: 0 auto;
    width: 60%;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.57;

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