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 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.

              <div class="vertical-centered">

    Flexbox demo: vertical centering
  <p>We can center any element with an unknown height. Just use <code>items-align: center</code> for the container or <code>self-align: center</code> for the flex item.</p>

  <p>In this example, even we align the entire height of the window, because we set the <code>body {height: 100vh; }</code>.</p> 

              body { 
  min-height: 100vh;   
  display: flex;
  /* Horizontal centering (main axis): */  
  justify-content: center;  
  /* Vertical centering (cross axis): */
  align-items: center;

.vertical-centered {  
  padding: 2em;
  background: #ddd;
  max-width: 50%;

/* Solution for no-flexbox browsers (proof of concept) */

.no-flexbox body {
    width: 100%;
    height: 100%;  
    margin: 0;
    padding: 0;  

.no-flexbox .vertical-centered {
   margin: 0 auto;
   position: absolute;
   left: 50%;
   top: 50%;
   margin-top: -150px;
   margin-left: -25%;  

.css-mine {
  position: fixed;
  bottom: 0;
Loading ..................