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>Welcome to our cool site</h1>
  <p>We specialize in something or other</p>
header {
  box-sizing: border-box;
  height: 100%;
  margin: 0;

body {
  display: table;
  width: 100%;

header {
  color: #fcfcfc;
  display: table-cell;
  font-size: 2em;
  overflow: hidden;
  padding: 1em;
  position: relative;
  text-align: center;
  vertical-align: middle;

header::before {
  content: '';
  background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/183091/laughing-with-salad.png") no-repeat bottom left, #ddd url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/183091/inspiring-landscape.jpg");
  background-size: 176.5px 250px, cover;
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(1.07);
  z-index: -1;
  filter: blur(3px);
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;

Original image sources courtesy of:

Woman laughing alone with salad: https://www.flickr.com/photos/reidab/7674996428

Kearsarge Pinnacles by Moonlight: https://www.flickr.com/photos/jeffpang/6079752728

Loading ..................