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="title" id="target"><span>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. </span></h1>
              * {
  margin: 0;
  padding: 0;
html {
  font: 1em/1.5 Georgia, serif;
  padding: 5%;
body {
  width: 400px;
h1 {

/* Heading style */
  background-color: #333;
.title {
  position: relative;
  line-height: 1;
  color: #fff;
  display: inline;
  white-space: pre-wrap;
  border: 0 solid #333;
  border-width: 0.25em 0; /* 0.25em is roughly equal to one space character. */
.title:after {
  content: "";
  position: absolute;
  top: -0.25em;
  right: 100%;
  bottom: -0.25em;
  width: 0.25em;
.title > span {
  position: relative;
  z-index: 1;

.title.show {
  outline: 3px solid red;
.title.show::after {
  outline: 3px solid lightgreen;
              var title = document.getElementById("target");

setInterval(function() {
  setTimeout(function() {
  }, 1000);
}, 2000);
Loading ..................