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.

              <button>Toggle Font Size</button>

<div>&#9776; Menu </div>

<h2>Pseudo Element w/ box-shadow</h2>
<div class="box-shadow-menu">Menu</div>

<h2>Pseudo Element w/ border</h2>
<div class="border-menu">Menu</div>

<h2>Pseudo Element w/ Gradient</h2>
<div class="gradient-menu">Menu</div>

<h2>SVG <small>(could be any image format...)</h2>
<div class="svg-menu">
  <img src="https://f.cl.ly/items/1U2c3b1215383h3a2T2r/icon-menu.svg"/>
              .box-shadow-menu {
  position: relative;
  padding-left: 1.25em;
.box-shadow-menu:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 1em;
  height: 0.15em;
  background: black;
    0 0.25em 0 0 black,
    0 0.5em 0 0 black;

.border-menu {
  position: relative;
  padding-left: 1.25em;
.border-menu:before {
  content: "";
  position: absolute;
  top: 0.25em;
  left: 0;
  width: 1em;
  height: 0.125em;
  border-top: 0.375em double #000;
  border-bottom: 0.125em solid #000;

.svg-menu img {
  width: 1.25em;

.gradient-menu {
  padding-left: 1.25em;
  position: relative;
.gradient-menu:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.21em;
  bottom: 0.21em;
  width: 1em;
  background: linear-gradient(
    black, black 20%, 
    white 20%, white 40%, 
    black 40%, black 60%, 
    white 60%, white 80%, 
    black 80%, black 100%

body {
  padding: 20px 20px 100px 0;
  font: bold 36px Sans-Serif;
h2 {
  color: #f06d06;
  font-size: 18px;
  margin: 30px 0 0;
button {
  font-size: 16px;

Tim Kadlec:

Jordan Moore:

Jermey Keith:

Stuart Robson:

Andy Clarke:


var toggle = 0;

$("button").on("click", function() {
  if (toggle) {
    $("body").css("font-size", "36px");
    toggle = 0;
  } else {
    $("body").css("font-size", "16px");
    toggle = 1;
Loading ..................