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.

  <span class="popup" data-popuptext="I am a CSS-only popup!">Hover me!</span>
  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quasi hic, aperiam ipsa in doloribus maxime, saepe tenetur nostrum suscipit, quaerat, sapiente modi neque laborum earum! Aliquid officia eligendi voluptates, aspernatur.
              html {
  background: radial-gradient(#246, #002);
  height: 100%;

body {
  text-align: center;
  font-size: 24px;
  width: 50%;
  height: 100%;
  margin: 0 auto;
  color: #ccc;
  display: table;

p {
  display: table-cell;
  vertical-align: middle;

span.popup {
  height: 0;
  color: #fff;
  position: relative;
  cursor: pointer;

  &:after {
    content: attr(data-popuptext);
    background: rgba(0, 0, 0, 0.85);
    border-radius: 3px;
    opacity: 0;
    top: 0;
    left: 0;
    position: absolute;
    transition: 500ms ease;
    white-space: nowrap;
    max-height: 0;
  &:hover:after {
    opacity: 1;
    top: 1.2em;
    max-height: 200px;
    padding: .4em;
Loading ..................