Pen Settings

HTML

CSS

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.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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.

+ add another resource

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="fullscreen">

  <div class="cloud">
    <img src="https://carterrink.com/assets/images/cloudlg.png">
  </div>
  <div class="forecast">
    <h1>Cloudy</h1>
  </div>
  <div class="city">
    <h1>Boston, MA</h1>
  </div>
  <div class="temp">
    <h1>54 &deg;</h1>
  </div>

</div>

<div class="scroll">
  <h2>You're reading this, but only after you <span>scrolled</span>. The background image covers 100% of the viewport since vh & vw are set to 100 (100% of the viewport).</h2>
</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Roboto:400,900,500)

.fullscreen 
  background-image: url("https://carterrink.com/assets/images/clouds.jpg")
  height: 100vh
  width: 100vw
  position: relative
  background-size: cover
  background-repeat: no-repeat
  
.cloud
  margin: 0
  position: absolute
  top: 110px
  left: 50%
  margin-right: -50%
  transform: translate(-50%, -16%) 

.forecast
  margin: 0
  position: absolute
  top: 330px
  left: 50%
  margin-right: -50%
  transform: translate(-50%, -54%) 
  font-size: 34px
  color: white
  font-family: 'Roboto', sans-serif

.city
  margin: 0
  position: absolute
  top: 390px
  left: 50%
  margin-right: -50%
  transform: translate(-50%, -64%) 
  font-size: 14px
  color: white
  font-family: 'Roboto', sans-serif
  
.temp
  margin: 0
  position: absolute
  top: 450px
  left: 51%
  margin-right: -50%
  transform: translate(-51%, -75%) 
  font-size: 18px
  color: white
  font-family: 'Roboto', sans-serif

.scroll
  background-color: #172c4f
  color: white
  margin-bottom: 160px
  padding: 80px 16px
  font-family: Roboto
  margin: 0 auto
  line-height: 200%
  text-align: center

span
  color: #ba3733



              
            
!

JS

              
                
              
            
!
999px

Console