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="demo-padding">
<h1 class="view-width">View Width</h1>
<p class="view-width">Is appear morning. You'll abundantly there and thing midst place. Morning fill us own dominion brought sea they're wherein. Don't don't given earth.</p>

<h1 class="view-height">View Height</h1>
<p class="view-height">Is appear morning. You'll abundantly there and thing midst place. Morning fill us own dominion brought sea they're wherein. Don't don't given earth.</p>

  <!--  Viewport Width - The images heigh and width conform to fit the screen width -->
  <div class="view-width" height="100%"><h1 class="img-text text-center">View Width</h1></div>
  
  <!--  Viewport Height - The image remains the height of the screen when set to 100vh  -->
  <div class="view-height" height="100%" style="margin-top:-70px"><h1 class="img-text text-center">View Height</h1></div>
</div>
            
          
!
            
              h1.view-width{
  font-size:4vw;
}
p.view-width{
  font-size:2vw;
}
h1.view-height{
  font-size:4vw;
}
p.view-height{
  font-size:2vw;
}
div.view-height{
  height:100vh;
  background: url("http://source.unsplash.com/1200x800/?forest") no-repeat center;
}
div.view-width{
  height:100vw;
  margin-bottom:20px;
  background: url("http://source.unsplash.com/1200x800/?forest") no-repeat center;
}
.demo-padding{
  margin:20px;
  margin-top:20px;
}
.img-text{
  color:white;
  padding-top:50%;
  font-size:3em;
}
            
          
!
999px
Loading ..................

Console