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.

              <div class="centered">
  <h1 class="title">I use this technique in pretty much every project:</h1>
  <div class="deck">
    <p>Whenever I need to draw a graphic line or introduce some other visual separator between items, I turn to pseudo-elements. Simple, clean, and entirely without clutter of any sort. It just works.</p>
              @import url(https://fonts.googleapis.com/css?family=Playfair+Display:900italic|Gentium+Basic);

body {
  display: flex;
  height: 90vh;
  justify-content: center;
  align-items: center;

.centered {
  width: 50%;

.title {
  font-family: 'Playfair Display', serif;
  font-size: 4em;
  text-transform: capitalize;
  text-align: center;

.deck {
  width: 80%;
  margin: 0 auto;
  font-family: 'Gentium Basic', serif;
  font-size: 1.6em;

.title::after {
  display: block;
  margin: .75em auto;
  width: 100px;
  content: "";
  border-bottom: 6px solid hsl(160, 100%, 70%);

.deck::after {
  display: block;
  margin-top: 2em;
  text-align: center;
  content: "§";
Loading ..................