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.

              <h2>Interesting. (a more impressive pen: <a href="https://codepen.io/Merri/pen/gBJui">keep the border in place</a>)</h2>
<p>Make me big.</p>
  <li>Firefox: OK</li>
  <li>Chrome: OK</li>
  <li>Internet Explorer 10: OK</li>
  <li>Internet Explorer 9: OK</li>
  <li>Internet Explorer 8: OK, but no <code>border-radius</code></li>
  <li>Internet Explorer 7: no support for <code>display: table;</code></li>
  <li>Opera: OK, but insists to have a vertical scrollbar for whatever reason</li>
              html {
  background: #5bb0ff;
  display: table;
  margin: 0;
  /* backwards compatibility */
  height: 98%;
  width: 98%;
  padding: 1%;
  /* the future is here! */
  height: calc(100% - 2em);
  width: calc(100% - 2em);
  padding: calc(1em);

body {
  background: white;
  border: 1px solid black;
  border-radius: 2em;
  display: table-cell;
  margin: 0;
  padding: .1em 1em;

/* unimportant */
p {
  background: #eef;
  height: 20px;
  height: 6vh;
  transition: all 1s ease-in-out;

p:hover {
  height: 500px;
  height: 100vh;
Loading ..................