cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv


A Pen By Captain Anonymous

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

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.

  .center Lorem ipsum dolor sit amet, consectetur adipisicing elit. Suscipit distinctio iure, est ex soluta non, reiciendis quidem totam praesentium, veniam expedita sunt alias nobis unde voluptatem quibusdam neque voluptatibus asperiores.
              body, html {
  height: 100%;
  width: 100%;
  margin: 0;

.wrapper {
  height: 100%;
  text-align: center; // horizontal centered
  &:before {
    content: "";
    height: 100%;
    width: 1px; // for some browsers
    margin-left: -1px; // fix 1px added

.center {
  width: 400px;
  padding: 20px;
  background: #bbb;

.center {
  display: inline-block;
  vertical-align: middle; // vertical centered
Loading ..................